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 -4
View File
@@ -193,10 +193,8 @@ func (s *SQLStore) AddLightningNode(ctx context.Context,
// returned.
//
// NOTE: part of the V1Store interface.
func (s *SQLStore) FetchLightningNode(pubKey route.Vertex) (
*models.LightningNode, error) {
ctx := context.TODO()
func (s *SQLStore) FetchLightningNode(ctx context.Context,
pubKey route.Vertex) (*models.LightningNode, error) {
var node *models.LightningNode
err := s.db.ExecTx(ctx, sqldb.ReadTxOpt(), func(db SQLQueries) error {