[skip-ci]Fix golint in cmd/index_node.go (#8694)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/8673/head
XuanYang-cn 2021-09-27 19:04:08 +08:00 committed by GitHub
parent 5490b84e77
commit b92f51bcfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}