mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
Merge pull request #4783 from yyforyongyu/autopilot-code-fix
autopilot: fix returned map size in mergeNodeMaps
This commit is contained in:
commit
1b97bcdac1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue