Add IndexNode implementation Assertion (#9202)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/9214/head
congqixia 2021-10-04 17:24:38 +08:00 committed by GitHub
parent 267fbe74e6
commit 3939197d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,7 @@ import (
"time"
"unsafe"
"github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/metricsinfo"
"go.uber.org/zap"
@ -54,6 +55,9 @@ import (
// UniqueID is an alias of int64, is used as a unique identifier for the request.
type UniqueID = typeutil.UniqueID
// make sure IndexNode implements types.IndexNode
var _ types.IndexNode = (*IndexNode)(nil)
// IndexNode is a component that executes the task of building indexes.
type IndexNode struct {
stateCode atomic.Value