Fix zero length slice declaration in flowgraph/node.go (#12393)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/12426/head
congqixia 2021-11-30 09:51:51 +08:00 committed by GitHub
parent 9fc1ec06d8
commit f834e220c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -68,9 +68,8 @@ func (nodeCtx *nodeCtx) work() {
return
default:
// inputs from inputsMessages for Operate
inputs := make([]Msg, 0)
var res []Msg
var inputs, res []Msg
if !nodeCtx.node.IsInputNode() {
nodeCtx.collectInputMessages()
inputs = nodeCtx.inputMessages