mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Improper error returned by calc_distance (#7175)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
This commit is contained in:
parent
6e34f4c7f1
commit
1c6f5104f7
@ -1489,7 +1489,7 @@ func (node *Proxy) CalcDistance(ctx context.Context, request *milvuspb.CalcDista
|
||||
ErrorCode: commonpb.ErrorCode_UnexpectedError,
|
||||
Reason: err.Error(),
|
||||
},
|
||||
}, nil
|
||||
}, err
|
||||
}
|
||||
|
||||
err = qt.WaitToFinish()
|
||||
@ -1499,7 +1499,7 @@ func (node *Proxy) CalcDistance(ctx context.Context, request *milvuspb.CalcDista
|
||||
ErrorCode: commonpb.ErrorCode_UnexpectedError,
|
||||
Reason: err.Error(),
|
||||
},
|
||||
}, nil
|
||||
}, err
|
||||
}
|
||||
|
||||
return &milvuspb.QueryResults{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user