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
@@ -268,7 +268,7 @@ func (b *Builder) Start() error {
// Finally, before we proceed, we'll prune any unconnected nodes
// from the graph in order to ensure we maintain a tight graph
// of "useful" nodes.
err = b.cfg.Graph.PruneGraphNodes()
err = b.cfg.Graph.PruneGraphNodes(context.TODO())
if err != nil &&
!errors.Is(err, graphdb.ErrGraphNodesNotFound) {
@@ -638,7 +638,7 @@ func (b *Builder) pruneZombieChans() error {
// With the channels pruned, we'll also attempt to prune any nodes that
// were a part of them.
err = b.cfg.Graph.PruneGraphNodes()
err = b.cfg.Graph.PruneGraphNodes(context.TODO())
if err != nil && !errors.Is(err, graphdb.ErrGraphNodesNotFound) {
return fmt.Errorf("unable to prune graph nodes: %w", err)
}