graph/db: thread context through to DeleteLightningNode
This commit is contained in:
5 files changed
+16
-12
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user