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
2025-02-18 13:48:11 -03:00
parent 81e0608c10
commit 00432e46f3
8 changed files with 40 additions and 18 deletions

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{