Fix golint and ruleguard (#8347)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/8427/head
XuanYang-cn 2021-09-23 19:14:01 +08:00 committed by GitHub
parent a830c28bd8
commit 2b82482679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View File

@ -40,11 +40,6 @@ import (
"github.com/milvus-io/milvus/internal/proto/schemapb"
)
const (
CollectionPrefix = "/collection/"
SegmentPrefix = "/segment/"
)
type (
// InsertData of storage
InsertData = storage.InsertData

View File

@ -84,11 +84,12 @@ func NewIndexNode(ctx context.Context) (*IndexNode, error) {
loopCancel: cancel,
}
b.UpdateStateCode(internalpb.StateCode_Abnormal)
var err error
b.sched, err = NewTaskScheduler(b.loopCtx, b.kv)
sc, err := NewTaskScheduler(b.loopCtx, b.kv)
if err != nil {
return nil, err
}
b.sched = sc
return b, nil
}