[skip e2e] Add comment for isHealthy (#14519)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/14539/head
bigsheeper 2021-12-29 17:37:25 +08:00 committed by GitHub
parent 6bd640c130
commit 0415618f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -519,6 +519,7 @@ func (node *QueryNode) GetSegmentInfo(ctx context.Context, in *queryPb.GetSegmen
}, nil
}
// isHealthy checks if QueryNode is healthy
func (node *QueryNode) isHealthy() bool {
code := node.stateCode.Load().(internalpb.StateCode)
return code == internalpb.StateCode_Healthy