Skip to content

Commit

Permalink
fixup! feat(shed): actor state diff stats
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 6, 2025
1 parent 1372d63 commit 46d3d03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/lotus-shed/state-stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ the total state of the actor in either tipset.

numWorkers := cctx.Int("workers")
dagCacheSize := cctx.Int("dag-cache-size")
listBlocks := cctx.Bool("list-blocks")
listBlocks := cctx.Bool("list-blocks") && !cctx.IsSet("diff-tipset") // if diff, don't list on first pass

jobs := make(chan address.Address, numWorkers)
results := make(chan actorStats, numWorkers)
Expand Down Expand Up @@ -805,6 +805,7 @@ the total state of the actor in either tipset.

jobs = make(chan address.Address, numWorkers)
results = make(chan actorStats, numWorkers)
listBlocks = cctx.Bool("list-blocks")

eg, egctx = errgroup.WithContext(ctx)
for w := 0; w < numWorkers; w++ {
Expand Down

0 comments on commit 46d3d03

Please sign in to comment.