routing: rename and export routingGraph

In preparation for structs outside of the `routing` package implementing
this interface, export `routingGraph` and rename it to `Graph` so as to
avoid stuttering.
This commit is contained in:
Elle Mouton committed 2024-07-15 13:10:24 +02:00
1 parent 5a903c270f
commit 3f121cbe81
10 files changed
+50 -50

No files matched your search

+4 -4
View File
@@ -167,7 +167,7 @@ type paymentSession struct {
additionalEdges map[route.Vertex][]AdditionalEdge
getBandwidthHints func(routingGraph) (bandwidthHints, error)
getBandwidthHints func(Graph) (bandwidthHints, error)
payment *LightningPayment
@@ -175,7 +175,7 @@ type paymentSession struct {
pathFinder pathFinder
getRoutingGraph func() (routingGraph, func(), error)
getRoutingGraph func() (Graph, func(), error)
// pathFindingConfig defines global parameters that control the
// trade-off in path finding between fees and probability.
@@ -195,8 +195,8 @@ type paymentSession struct {
// newPaymentSession instantiates a new payment session.
func newPaymentSession(p *LightningPayment, selfNode route.Vertex,
getBandwidthHints func(routingGraph) (bandwidthHints, error),
getRoutingGraph func() (routingGraph, func(), error),
getBandwidthHints func(Graph) (bandwidthHints, error),
getRoutingGraph func() (Graph, func(), error),
missionControl MissionController, pathFindingConfig PathFindingConfig) (
*paymentSession, error) {