From b92f51bcfe84c03ec208e3d8c3136e4b7cae51a6 Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Mon, 27 Sep 2021 19:04:08 +0800 Subject: [PATCH] [skip-ci]Fix golint in cmd/index_node.go (#8694) Signed-off-by: yangxuan --- cmd/components/index_coord.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/components/index_coord.go b/cmd/components/index_coord.go index d49c66a42d..23bdc8c641 100644 --- a/cmd/components/index_coord.go +++ b/cmd/components/index_coord.go @@ -19,6 +19,7 @@ import ( grpcindexcoord "github.com/milvus-io/milvus/internal/distributed/indexcoord" ) +// IndexCoord implements IndexCoord grpc server type IndexCoord struct { svr *grpcindexcoord.Server } @@ -52,6 +53,7 @@ func (s *IndexCoord) Stop() error { return nil } +// GetComponentStates returns indexnode's states func (s *IndexCoord) GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) { return s.svr.GetComponentStates(ctx, request) }