milvus/internal/querynode/flow_graph_msg_stream_input_nodes.go
ophunter233 4a921ffd7e Stop listen to dd channel in query node
Signed-off-by: ophunter233 <chengming.li@zilliz.com>
2021-03-03 16:06:02 +08:00

20 lines
559 B
Go

package querynode
import (
"context"
"github.com/zilliztech/milvus-distributed/internal/util/flowgraph"
)
func (dsService *dataSyncService) newDmInputNode(ctx context.Context) *flowgraph.InputNode {
// query node doesn't need to consume any topic
insertStream, _ := dsService.msFactory.NewTtMsgStream(ctx)
dsService.dmStream = insertStream
maxQueueLength := Params.FlowGraphMaxQueueLength
maxParallelism := Params.FlowGraphMaxParallelism
node := flowgraph.NewInputNode(&insertStream, "dmInputNode", maxQueueLength, maxParallelism)
return node
}