Improper error returned by calc_distance (#7175)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
This commit is contained in:
groot 2021-08-20 16:19:42 +08:00 committed by GitHub
parent 6e34f4c7f1
commit 1c6f5104f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{