Fix zero length slice declaration in querycoord/channel_allocator.go (#12716)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/12738/head
congqixia 2021-12-04 00:41:33 +08:00 committed by GitHub
parent 2512ca3684
commit b009b39557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}