channeldb+routing: remove tx arg for ForEachNode

This commit is contained in:
Conner Fromknecht committed 2020-05-12 17:53:20 -07:00
1 parent b6915d9fbf
commit 90d3bf532d
5 files changed
+8 -21

No files matched your search

+1 -1
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)
})
}