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

channeldb: remove Tx arg from ForEachNode
This commit is contained in:
Conner Fromknecht authored and GitHub committed 2020-05-13 16:37:10 -07:00
commit 2f84d1a819
5 files changed
+8 -21

No files matched your search

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