routing: rename routing Graph method

In preparation for having the ChannelGraph directly implement the
`routing.Graph` interface, we rename the `ForEachNodeChannel` method to
`ForEachNodeDirectedChannel` since the ChannelGraph already uses the
`ForEachNodeChannel` name and the new name is more appropriate since the
ChannelGraph currently has a `ForEachNodeDirectedChannelTx` method which
passes the same DirectedChannel type to the given call-back.
This commit is contained in:
Elle Mouton committed 2025-02-18 07:59:57 -03:00
1 parent 971832c792
commit 5d5cfe36c7
7 files changed
+12 -11

No files matched your search

+1 -1
View File
@@ -391,7 +391,7 @@ func (g *mockGraphSessionChanDB) close() error {
return nil
}
func (g *mockGraphSessionChanDB) ForEachNodeChannel(nodePub route.Vertex,
func (g *mockGraphSessionChanDB) ForEachNodeDirectedChannel(nodePub route.Vertex,
cb func(channel *graphdb.DirectedChannel) error) error {
return g.graph.ForEachNodeDirectedChannelTx(g.tx, nodePub, cb)