[skip-ci]Fix golint in cmd data_coord (#8692)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2021-09-27 19:09:58 +08:00 committed by GitHub
parent 8b0e4d5a09
commit 892991ee61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ import (
"github.com/milvus-io/milvus/internal/msgstream"
)
// DataCoord implements grpc server of DataCoord server
type DataCoord struct {
ctx context.Context
svr *grpcdatacoordclient.Server
@ -54,6 +55,7 @@ func (s *DataCoord) Stop() error {
return nil
}
// GetComponentStates returns DataCoord's states
func (s *DataCoord) GetComponentStates(ctx context.Context, request *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
return s.svr.GetComponentStates(ctx, request)
}