[skip ci] Add comments for proxy error (#9898)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9911/head
dragondriver 2021-10-14 19:16:39 +08:00 committed by GitHub
parent 7eab390927
commit 336869b46a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ func msgProxyIsUnhealthy(id UniqueID) string {
return fmt.Sprintf("proxy %d is unhealthy", id)
}
// errProxyIsUnhealthy returns an error represent proxy is unhealthy
func errProxyIsUnhealthy(id UniqueID) error {
return errors.New(msgProxyIsUnhealthy(id))
}