From 2c687d372e35d17537cda4497cb77381abfa7197 Mon Sep 17 00:00:00 2001 From: dragondriver Date: Wed, 3 Nov 2021 19:52:13 +0800 Subject: [PATCH] [skip ci] Add comments for GetComponentStates (#11185) Signed-off-by: dragondriver --- internal/proxy/impl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/proxy/impl.go b/internal/proxy/impl.go index 6d63d8feff..2968f45e36 100644 --- a/internal/proxy/impl.go +++ b/internal/proxy/impl.go @@ -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{