graphdb: pass context to PruneGraphNodes

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 072244ee18
commit 13668ce45f
6 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -494,8 +494,8 @@ func (c *ChannelGraph) PruneGraph(spentOutputs []*wire.OutPoint,
// any nodes from the channel graph that are currently unconnected. This ensure
// that we only maintain a graph of reachable nodes. In the event that a pruned
// node gains more channels, it will be re-added back to the graph.
func (c *ChannelGraph) PruneGraphNodes() error {
nodes, err := c.db.PruneGraphNodes()
func (c *ChannelGraph) PruneGraphNodes(ctx context.Context) error {
nodes, err := c.db.PruneGraphNodes(ctx)
if err != nil {
return err
}