multi: pass reset to ForEachNodeCached
This commit is contained in:
14 files changed
+61
-25
No files matched your search
@@ -7215,6 +7215,15 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
|
||||
}
|
||||
|
||||
return nil
|
||||
}, func() {
|
||||
numChannels = 0
|
||||
numNodes = 0
|
||||
maxChanOut = 0
|
||||
totalNetworkCapacity = 0
|
||||
minChannelSize = math.MaxInt64
|
||||
maxChannelSize = 0
|
||||
allChans = nil
|
||||
clear(seenChans)
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user