[skip ci]Fix golint error for NewClient in QueryNode (#10220)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/10226/head
cai.zhang 2021-10-19 20:42:35 +08:00 committed by GitHub
parent 1d0e9dc6d7
commit a6ce06de6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func (c *Client) resetConnection() {
c.grpcClient = nil
}
// NewClient creates a new QueryNode client.
func NewClient(ctx context.Context, addr string) (*Client, error) {
if addr == "" {
return nil, fmt.Errorf("addr is empty")