mirror of https://github.com/milvus-io/milvus.git
fix: Fix printing type of request (#33289)
issue: https://github.com/milvus-io/milvus/issues/31705 Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/33316/head
parent
fd53cdb103
commit
155cb40fc9
|
@ -19,7 +19,6 @@ package proxy
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue