[skip ci] Add comments for GetComponentStates (#11185)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/11194/head
dragondriver 2021-11-03 19:52:13 +08:00 committed by GitHub
parent b3305da3fa
commit 2c687d372e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ func (node *Proxy) UpdateStateCode(code internalpb.StateCode) {
node.stateCode.Store(code)
}
// GetComponentStates get state of Proxy.
func (node *Proxy) GetComponentStates(ctx context.Context) (*internalpb.ComponentStates, error) {
stats := &internalpb.ComponentStates{
Status: &commonpb.Status{