graphdb: pass context to PruneGraphNodes
This commit is contained in:
6 files changed
+9
-9
No files matched your search
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user