autopilot: fix returned map size in mergeNodeMaps

This commit is contained in:
yyforyongyu committed 2020-11-19 14:30:11 +08:00
1 parent 1efef51268
commit 0ace42649e
1 file changed
+1 -1
+1 -1
View File
@@ -364,7 +364,7 @@ func mergeNodeMaps(c map[NodeID]LocalChannel,
numNodes += len(skip)
}
res := make(map[NodeID]struct{}, len(c)+numNodes)
res := make(map[NodeID]struct{}, numNodes)
for nodeID := range c {
res[nodeID] = struct{}{}
}