channeldb+routing: remove tx arg for ForEachNode

This commit is contained in:
Conner Fromknecht
2020-05-12 15:24:40 -07:00
parent b6915d9fbf
commit 90d3bf532d
5 changed files with 8 additions and 21 deletions

View File

@@ -2181,7 +2181,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)
})
}