graph/db: let ChannelGraph init the graphCache

In this commit, we let the ChannelGraph be responsible for populating
the graphCache and then passing it to the KVStore. This is a first step
in moving the graphCache completely out of the KVStore layer.
This commit is contained in:
Elle Mouton committed 2025-03-24 15:05:46 +02:00
1 parent 00432e46f3
commit 88398e3dd9
8 files changed
+129 -80

No files matched your search

+1
View File
@@ -3924,6 +3924,7 @@ func TestGraphCacheForEachNodeChannel(t *testing.T) {
// Unset the channel graph cache to simulate the user running with the
// option turned off.
graph.graphCache = nil
graph.KVStore.graphCache = nil
node1, err := createTestVertex(graph.db)
require.Nil(t, err)