From e20445987e70c01ec829812664d451909dc8cafd Mon Sep 17 00:00:00 2001 From: congqixia Date: Sun, 3 Oct 2021 19:44:11 +0800 Subject: [PATCH] Add Datacoord Server implementation Assertion (#9143) Signed-off-by: Congqi Xia --- internal/datacoord/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/datacoord/server.go b/internal/datacoord/server.go index d44cdd39a8..2eae2673e9 100644 --- a/internal/datacoord/server.go +++ b/internal/datacoord/server.go @@ -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 {