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

+4 -2
View File
@@ -286,8 +286,10 @@ func (c *ChannelGraph) AddLightningNode(ctx context.Context,
// DeleteLightningNode starts a new database transaction to remove a vertex/node
// from the database according to the node's public key.
func (c *ChannelGraph) DeleteLightningNode(nodePub route.Vertex) error {
err := c.V1Store.DeleteLightningNode(nodePub)
func (c *ChannelGraph) DeleteLightningNode(ctx context.Context,
nodePub route.Vertex) error {
err := c.V1Store.DeleteLightningNode(ctx, nodePub)
if err != nil {
return err
}