fix throttling bug
This commit is contained in:
parent
87fc8db5a9
commit
928ac2191b
@ -748,7 +748,10 @@ func (sm *StorageMinerAPI) DagstoreInitializeAll(ctx context.Context, params api
|
|||||||
}
|
}
|
||||||
|
|
||||||
err := sm.DagstoreInitializeShard(ctx, k)
|
err := sm.DagstoreInitializeShard(ctx, k)
|
||||||
throttle <- struct{}{}
|
|
||||||
|
if throttle != nil {
|
||||||
|
throttle <- struct{}{}
|
||||||
|
}
|
||||||
|
|
||||||
r.Event = "end"
|
r.Event = "end"
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user