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)
|
err := sm.DagstoreInitializeShard(ctx, k)
|
||||||
|
|
||||||
|
if throttle != nil {
|
||||||
throttle <- struct{}{}
|
throttle <- struct{}{}
|
||||||
|
}
|
||||||
|
|
||||||
r.Event = "end"
|
r.Event = "end"
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user