routing+server: use cached graph interface

This commit is contained in:
Oliver Gugger committed 2021-09-29 17:00:05 +02:00
1 parent 1d1c42f9ba
commit bf27d05aa8
10 files changed
+56 -80

No files matched your search

+1 -5
View File
@@ -162,11 +162,7 @@ func (c *integratedRoutingContext) testPayment(maxParts uint32,
}
session, err := newPaymentSession(
&payment, getBandwidthHints,
func() (routingGraph, func(), error) {
return c.graph, func() {}, nil
},
mc, c.pathFindingCfg,
&payment, getBandwidthHints, c.graph, mc, c.pathFindingCfg,
)
if err != nil {
c.t.Fatal(err)