mirror of https://github.com/milvus-io/milvus.git
Fix zero length slice declaration in querycoord/channel_allocator.go (#12716)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/12738/head
parent
2512ca3684
commit
b009b39557
|
@ -59,7 +59,7 @@ func shuffleChannelsToQueryNode(ctx context.Context, reqs []*querypb.WatchDmChan
|
|||
}
|
||||
|
||||
if len(availableNodes) > 0 {
|
||||
nodeIDSlice := make([]int64, 0)
|
||||
nodeIDSlice := make([]int64, 0, len(availableNodes))
|
||||
for nodeID := range availableNodes {
|
||||
nodeIDSlice = append(nodeIDSlice, nodeID)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue