graph/db: init KVStore outside of ChannelGraph
So that we can pass in the abstract V1Store in preparation for adding a SQL implementation of the KVStore.
This commit is contained in:
8 files changed
+36
-39
No files matched your search
+4
-3
@@ -615,9 +615,10 @@ func createTestPeer(t *testing.T) *peerTestCtx {
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
dbAliceGraph, err := graphdb.NewChannelGraph(&graphdb.Config{
|
||||
KVDB: graphBackend,
|
||||
})
|
||||
graphStore, err := graphdb.NewKVStore(graphBackend)
|
||||
require.NoError(t, err)
|
||||
|
||||
dbAliceGraph, err := graphdb.NewChannelGraph(graphStore)
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, dbAliceGraph.Start())
|
||||
t.Cleanup(func() {
|
||||
|
||||
Reference in new issue
Block a user