Skip to content

Commit

Permalink
fix: Fix printing type of request (#33289)
Browse files Browse the repository at this point in the history
issue: #31705

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
  • Loading branch information
bigsheeper committed May 23, 2024
1 parent fd53cdb commit 155cb40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/proxy/rate_limit_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package proxy
import (
"context"
"fmt"
"reflect"
"strconv"

"github.com/golang/protobuf/proto"
Expand Down Expand Up @@ -206,7 +205,7 @@ func getRequestInfo(ctx context.Context, req interface{}) (int64, map[int64][]in
if req == nil {
return util.InvalidDBID, map[int64][]int64{}, 0, 0, fmt.Errorf("null request")
}
return util.InvalidDBID, map[int64][]int64{}, 0, 0, fmt.Errorf("unsupported request type %s", reflect.TypeOf(req).Name())
return util.InvalidDBID, map[int64][]int64{}, 0, 0, fmt.Errorf("unsupported request type %T", req)
}
}

Expand Down

0 comments on commit 155cb40

Please sign in to comment.