multi: add ChannelGraph Config struct

And use this struct to pass NewChannelGraph anything it needs to be able
to init the KVStore that it houses. This will allow us to add
ChannelGraph specific options.
This commit is contained in:
Elle Mouton committed 2025-03-24 15:05:46 +02:00
1 parent 81e0608c10
commit 00432e46f3
8 files changed
+40 -18

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ func newDiskChanGraph(t *testing.T) (testGraph, error) {
})
require.NoError(t, err)
graphDB, err := graphdb.NewChannelGraph(backend)
graphDB, err := graphdb.NewChannelGraph(&graphdb.Config{KVDB: backend})
require.NoError(t, err)
return &testDBGraph{