mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comments for AddQueryChannel (#11047)
Signed-off-by: xige-16 <xi.ge@zilliz.com>pull/11054/head
parent
a55019825b
commit
b632de8dd2
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue