[skip ci]Fix golint for node.start (#12831)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/12834/head
xige-16 2021-12-06 21:49:53 +08:00 committed by GitHub
parent d98b808f26
commit 52978273b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -125,11 +125,11 @@ func newQueryNode(ctx context.Context, address string, id UniqueID, kv *etcdkv.E
func (qn *queryNode) start() error {
if err := qn.client.Init(); err != nil {
log.Error("Start: init queryNode client failed", zap.Int64("nodeID", qn.id), zap.String("error", err.Error()))
log.Error("start: init queryNode client failed", zap.Int64("nodeID", qn.id), zap.String("error", err.Error()))
return err
}
if err := qn.client.Start(); err != nil {
log.Error("Start: start queryNode client failed", zap.Int64("nodeID", qn.id), zap.String("error", err.Error()))
log.Error("start: start queryNode client failed", zap.Int64("nodeID", qn.id), zap.String("error", err.Error()))
return err
}
@ -138,7 +138,7 @@ func (qn *queryNode) start() error {
qn.state = online
}
qn.stateLock.Unlock()
log.Debug("Start: queryNode client start success", zap.Int64("nodeID", qn.id), zap.String("address", qn.address))
log.Debug("start: queryNode client start success", zap.Int64("nodeID", qn.id), zap.String("address", qn.address))
return nil
}