autopilot: fix returned map size in mergeNodeMaps
This commit is contained in:
parent
1efef51268
commit
0ace42649e
@ -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{}{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user