graph/db: thread context to AddLightningNode

This commit is contained in:
Elle Mouton committed 2025-06-17 19:20:27 +02:00
1 parent c1740c14ba
commit d1cfb47428
15 files changed
+126 -81

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
package graphdb
import (
"context"
"net"
"time"
@@ -56,7 +57,7 @@ type V1Store interface { //nolint:interfacebloat
// update that node's information. Note that this method is expected to
// only be called to update an already present node from a node
// announcement, or to insert a node found in a channel update.
AddLightningNode(node *models.LightningNode,
AddLightningNode(ctx context.Context, node *models.LightningNode,
op ...batch.SchedulerOption) error
// AddrsForNode returns all known addresses for the target node public