mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
[skip-ci]Fix golint in cmd/index_node.go (#8694)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
5490b84e77
commit
b92f51bcfe
@ -19,6 +19,7 @@ import (
|
|||||||
grpcindexcoord "github.com/milvus-io/milvus/internal/distributed/indexcoord"
|
grpcindexcoord "github.com/milvus-io/milvus/internal/distributed/indexcoord"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// IndexCoord implements IndexCoord grpc server
|
||||||
type IndexCoord struct {
|
type IndexCoord struct {
|
||||||
svr *grpcindexcoord.Server
|
svr *grpcindexcoord.Server
|
||||||
}
|
}
|
||||||
@ -52,6 +53,7 @@ func (s *IndexCoord) Stop() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetComponentStates returns indexnode's states
|
||||||
func (s *IndexCoord) GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
|
func (s *IndexCoord) GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
|
||||||
return s.svr.GetComponentStates(ctx, request)
|
return s.svr.GetComponentStates(ctx, request)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user