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

+4 -1
View File
@@ -129,8 +129,11 @@ func createTestCtxFromGraphInstanceAssumeValid(t *testing.T,
)
require.NoError(t, err, "failed to create missioncontrol")
cachedGraph, err := NewCachedGraph(graphInstance.graph)
require.NoError(t, err)
sessionSource := &SessionSource{
Graph: graphInstance.graph,
Graph: cachedGraph,
QueryBandwidth: func(
c *channeldb.DirectedChannel) lnwire.MilliSatoshi {