Merge pull request #9544 from lightningnetwork/elle-graphCacheBase

graph: move graph cache out of CRUD layer
This commit is contained in:
Oliver Gugger
2025-03-25 07:43:06 -06:00
committed by GitHub
17 changed files with 5435 additions and 4788 deletions

View File

@@ -167,11 +167,16 @@ func makeTestGraph(t *testing.T, useCache bool) (*graphdb.ChannelGraph,
t.Cleanup(backendCleanup)
graph, err := graphdb.NewChannelGraph(
backend, graphdb.WithUseGraphCache(useCache),
&graphdb.Config{KVDB: backend},
graphdb.WithUseGraphCache(useCache),
)
if err != nil {
return nil, nil, err
}
require.NoError(t, graph.Start())
t.Cleanup(func() {
require.NoError(t, graph.Stop())
})
return graph, backend, nil
}