Add Datacoord Server implementation Assertion (#9143)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/9150/head
congqixia 2021-10-03 19:44:11 +08:00 committed by GitHub
parent f8928fe76b
commit e20445987e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ type DataNodeCreatorFunc func(ctx context.Context, addr string) (types.DataNode,
// RootCoordCreatorFunc creator function for rootcoord
type RootCoordCreatorFunc func(ctx context.Context, metaRootPath string, etcdEndpoints []string) (types.RootCoord, error)
// makes sure Server implements `DataCoord`
var _ types.DataCoord = (*Server)(nil)
// Server implements `types.Datacoord`
// handles Data Cooridinator related jobs
type Server struct {