[skip ci] Fix golint of addQueryChannel in queryCoord (#11940)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-11-16 21:51:18 +08:00 committed by GitHub
parent acd75c312a
commit 544f1da95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,13 +327,13 @@ func (c *queryNodeCluster) addQueryChannel(ctx context.Context, nodeID int64, in
if node, ok := c.nodes[nodeID]; ok {
err := node.addQueryChannel(ctx, in)
if err != nil {
log.Debug("AddQueryChannel: queryNode add query channel error", zap.String("error", err.Error()))
log.Debug("addQueryChannel: queryNode add query channel error", zap.String("error", err.Error()))
return err
}
return nil
}
return fmt.Errorf("AddQueryChannel: can't find query node by nodeID, nodeID = %d", nodeID)
return fmt.Errorf("addQueryChannel: can't find query node by nodeID, nodeID = %d", nodeID)
}
func (c *queryNodeCluster) removeQueryChannel(ctx context.Context, nodeID int64, in *querypb.RemoveQueryChannelRequest) error {
c.Lock()