mirror of https://github.com/milvus-io/milvus.git
Add comment and implementation assertion for ddnode (#9333)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/9413/head
parent
98c26b56a6
commit
908b7df41d
|
@ -21,10 +21,14 @@ import (
|
|||
"github.com/milvus-io/milvus/internal/proto/commonpb"
|
||||
"github.com/milvus-io/milvus/internal/proto/datapb"
|
||||
"github.com/milvus-io/milvus/internal/proto/internalpb"
|
||||
"github.com/milvus-io/milvus/internal/util/flowgraph"
|
||||
"github.com/milvus-io/milvus/internal/util/trace"
|
||||
"github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
// make sure ddNode implements flowgraph.Node
|
||||
var _ flowgraph.Node = (*ddNode)(nil)
|
||||
|
||||
// ddNode filter messages from message streams.
|
||||
//
|
||||
// ddNode recives all the messages from message stream dml channels, including insert messages,
|
||||
|
@ -49,10 +53,12 @@ type ddNode struct {
|
|||
flushedSegments []UniqueID
|
||||
}
|
||||
|
||||
// Name returns node name, implementing flowgraph.Node
|
||||
func (ddn *ddNode) Name() string {
|
||||
return "ddNode"
|
||||
}
|
||||
|
||||
// Operate handles input messages, implementing flowgrpah.Node
|
||||
func (ddn *ddNode) Operate(in []Msg) []Msg {
|
||||
// log.Debug("DDNode Operating")
|
||||
|
||||
|
|
Loading…
Reference in New Issue