Merge pull request #4783 from yyforyongyu/autopilot-code-fix
autopilot: fix returned map size in mergeNodeMaps
This commit is contained in:
commit
1b97bcdac1
@ -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