[skip ci] Add comment for NewQueryNode func (#8699)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/8673/head
bigsheeper 2021-09-27 19:02:09 +08:00 committed by GitHub
parent c982e368dd
commit 5490b84e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ type QueryNode struct {
etcdKV *etcdkv.EtcdKV
}
// NewQueryNode will return a QueryNode with abnormal state.
func NewQueryNode(ctx context.Context, factory msgstream.Factory) *QueryNode {
ctx1, cancel := context.WithCancel(ctx)
node := &QueryNode{