mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
multi: pass reset to ForEachNodeCached
This commit is contained in:
@@ -60,6 +60,10 @@ func NewSimpleGraph(ctx context.Context, g ChannelGraph) (*SimpleGraph, error) {
|
||||
return nil
|
||||
},
|
||||
)
|
||||
}, func() {
|
||||
clear(adj)
|
||||
clear(nodes)
|
||||
nextIndex = 0
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user