Merge pull request #4280 from cfromknecht/read-for-each-node

channeldb: remove Tx arg from ForEachNode
This commit is contained in:
Conner Fromknecht
2020-05-13 16:37:10 -07:00
committed by GitHub
5 changed files with 8 additions and 21 deletions

View File

@@ -2186,7 +2186,7 @@ func (r *ChannelRouter) FetchLightningNode(node route.Vertex) (*channeldb.Lightn
//
// NOTE: This method is part of the ChannelGraphSource interface.
func (r *ChannelRouter) ForEachNode(cb func(*channeldb.LightningNode) error) error {
return r.cfg.Graph.ForEachNode(nil, func(_ kvdb.ReadTx, n *channeldb.LightningNode) error {
return r.cfg.Graph.ForEachNode(func(_ kvdb.ReadTx, n *channeldb.LightningNode) error {
return cb(n)
})
}