[skip ci] Fix golint of loadSegments in queryCoord (#11859)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/11826/head^2
xige-16 2021-11-16 09:31:24 +08:00 committed by GitHub
parent 94d516bc61
commit 20a1c9774b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -229,13 +229,13 @@ func (c *queryNodeCluster) loadSegments(ctx context.Context, nodeID int64, in *q
if node, ok := c.nodes[nodeID]; ok { if node, ok := c.nodes[nodeID]; ok {
err := node.loadSegments(ctx, in) err := node.loadSegments(ctx, in)
if err != nil { if err != nil {
log.Debug("LoadSegments: queryNode load segments error", zap.Int64("nodeID", nodeID), zap.String("error info", err.Error())) log.Debug("loadSegments: queryNode load segments error", zap.Int64("nodeID", nodeID), zap.String("error info", err.Error()))
return err return err
} }
return nil return nil
} }
return fmt.Errorf("LoadSegments: Can't find query node by nodeID, nodeID = %d", nodeID) return fmt.Errorf("loadSegments: Can't find query node by nodeID, nodeID = %d", nodeID)
} }
func (c *queryNodeCluster) releaseSegments(ctx context.Context, nodeID int64, in *querypb.ReleaseSegmentsRequest) error { func (c *queryNodeCluster) releaseSegments(ctx context.Context, nodeID int64, in *querypb.ReleaseSegmentsRequest) error {