[skip ci] Add comments for AddQueryChannel (#11047)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/11054/head
xige-16 2021-11-01 22:32:33 +08:00 committed by GitHub
parent a55019825b
commit b632de8dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func (node *QueryNode) GetStatisticsChannel(ctx context.Context) (*milvuspb.Stri
}, nil }, nil
} }
// AddQueryChannel watch queryChannel of the collection to receive query message
func (node *QueryNode) AddQueryChannel(ctx context.Context, in *queryPb.AddQueryChannelRequest) (*commonpb.Status, error) { func (node *QueryNode) AddQueryChannel(ctx context.Context, in *queryPb.AddQueryChannelRequest) (*commonpb.Status, error) {
code := node.stateCode.Load().(internalpb.StateCode) code := node.stateCode.Load().(internalpb.StateCode)
if code != internalpb.StateCode_Healthy { if code != internalpb.StateCode_Healthy {