Skip to content

Commit

Permalink
Merge pull request #7177 from filecoin-project/feat/fix-send-nil-thro…
Browse files Browse the repository at this point in the history
…ttle

Fix throttling bug
  • Loading branch information
aarshkshah1992 authored Aug 25, 2021
2 parents 87fc8db + 928ac21 commit 7739051
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/impl/storminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,10 @@ func (sm *StorageMinerAPI) DagstoreInitializeAll(ctx context.Context, params api
}

err := sm.DagstoreInitializeShard(ctx, k)
throttle <- struct{}{}

if throttle != nil {
throttle <- struct{}{}
}

r.Event = "end"
if err == nil {
Expand Down

0 comments on commit 7739051

Please sign in to comment.