mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
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:
@@ -47,7 +47,10 @@ func newDiskChanGraph(t *testing.T) (testGraph, error) {
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
graphDB, err := graphdb.NewChannelGraph(&graphdb.Config{KVDB: backend})
|
||||
graphStore, err := graphdb.NewKVStore(backend)
|
||||
require.NoError(t, err)
|
||||
|
||||
graphDB, err := graphdb.NewChannelGraph(graphStore)
|
||||
require.NoError(t, err)
|
||||
|
||||
require.NoError(t, graphDB.Start())
|
||||
|
Reference in New Issue
Block a user