graph/db: thread context through to DeleteLightningNode

This commit is contained in:
Elle Mouton committed 2025-06-17 19:20:59 +02:00
1 parent dc6259fcc3
commit d1fa5701eb
5 files changed
+16 -12

No files matched your search

+2 -2
View File
@@ -291,8 +291,8 @@ func (s *SQLStore) AddrsForNode(nodePub *btcec.PublicKey) (bool, []net.Addr,
// from the database according to the node's public key.
//
// NOTE: part of the V1Store interface.
func (s *SQLStore) DeleteLightningNode(pubKey route.Vertex) error {
ctx := context.TODO()
func (s *SQLStore) DeleteLightningNode(ctx context.Context,
pubKey route.Vertex) error {
err := s.db.ExecTx(ctx, sqldb.WriteTxOpt(), func(db SQLQueries) error {
res, err := db.DeleteNodeByPubKey(