graph/db: thread context through FetchNodeFeatures

This commit is contained in:
Elle Mouton committed 2026-02-25 15:32:05 +02:00
1 parent 13a8356558
commit b1873e63ec
8 files changed
+30 -22

No files matched your search

+2 -2
View File
@@ -298,13 +298,13 @@ func testNodeInsertionAndDeletion(t *testing.T, v lnwire.GossipVersion) {
// Check that the node's features are fetched correctly. This check
// will use the graph cache to fetch the features.
features, err := graph.FetchNodeFeatures(node.PubKeyBytes)
features, err := graph.FetchNodeFeatures(ctx, node.PubKeyBytes)
require.NoError(t, err)
require.Equal(t, testFeatures, features)
// Check that the node's features are fetched correctly. This check
// will check the database directly.
features, err = graph.FetchNodeFeatures(node.PubKeyBytes)
features, err = graph.FetchNodeFeatures(ctx, node.PubKeyBytes)
require.NoError(t, err)
require.Equal(t, testFeatures, features)