mirror of https://github.com/milvus-io/milvus.git
[skip-ci]Fix golint in cmd data_coord (#8692)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/8673/head
parent
8b0e4d5a09
commit
892991ee61
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue