mirror of https://github.com/milvus-io/milvus.git
[skip-ci]Fix golint in cmd/components (#8895)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/8901/head
parent
6f2f09db3a
commit
c8f48f2e5b
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import (
|
|||
"context"
|
||||
)
|
||||
|
||||
// MsgStream is an empty struct
|
||||
type MsgStream struct {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue