[skip-ci]Fix golint in cmd/data_node.go (#8693)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/8807/head
XuanYang-cn 2021-09-28 22:30:05 +08:00 committed by GitHub
parent 9d6c95bf25
commit 0e50fa2d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import (
"github.com/milvus-io/milvus/internal/msgstream"
)
// DataNode implements DataNode grpc server
type DataNode struct {
ctx context.Context
svr *grpcdatanode.Server
@ -56,6 +57,7 @@ func (d *DataNode) Stop() error {
return nil
}
// GetComponentStates returns DataNode's states
func (d *DataNode) GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
return d.svr.GetComponentStates(ctx, request)
}