Merge pull request #7177 from filecoin-project/feat/fix-send-nil-throttle
Fix throttling bug
This commit is contained in:
commit
7739051725
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user