Skip to content

Commit

Permalink
fix: slightly faster gc
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 12, 2019
1 parent 28c9c3a commit de0c8a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pin/gc/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,8 @@ func Descendants(ctx context.Context, getLinks dag.GetLinks, set *cid.Set, roots
}

for _, c := range roots {
set.Add(c)

// EnumerateChildren recursively walks the dag and adds the keys to the given set
err := dag.EnumerateChildren(ctx, verifyGetLinks, c, set.Visit)
err := dag.EnumerateChildrenAsync(ctx, verifyGetLinks, c, set.Visit)

if err != nil {
err = verboseCidError(err)
Expand Down

0 comments on commit de0c8a9

Please sign in to comment.