[skip-ci]Fix golint in cmd/components (#8895)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/8901/head
XuanYang-cn 2021-09-29 23:40:10 +08:00 committed by GitHub
parent 6f2f09db3a
commit c8f48f2e5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import (
grpcindexnode "github.com/milvus-io/milvus/internal/distributed/indexnode"
)
// IndexNode implements IndexNode grpc server
type IndexNode struct {
svr *grpcindexnode.Server
}
@ -52,6 +53,7 @@ func (n *IndexNode) Stop() error {
return nil
}
// GetComponentStates returns IndexNode's states
func (n *IndexNode) GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
return n.svr.GetComponentStates(ctx, request)
}

View File

@ -15,6 +15,7 @@ import (
"context"
)
// MsgStream is an empty struct
type MsgStream struct {
}