graph/db: thread context through to FetchLightingNode

This commit is contained in:
Elle Mouton committed 2025-06-17 19:20:27 +02:00
1 parent d1cfb47428
commit 66c5a97202
12 files changed
+47 -39

No files matched your search

+2 -2
View File
@@ -126,8 +126,8 @@ type V1Store interface { //nolint:interfacebloat
// FetchLightningNode attempts to look up a target node by its identity
// public key. If the node isn't found in the database, then
// ErrGraphNodeNotFound is returned.
FetchLightningNode(nodePub route.Vertex) (
*models.LightningNode, error)
FetchLightningNode(ctx context.Context,
nodePub route.Vertex) (*models.LightningNode, error)
// HasLightningNode determines if the graph has a vertex identified by
// the target node identity public key. If the node exists in the