Merge pull request #7177 from filecoin-project/feat/fix-send-nil-throttle

Fix throttling bug
This commit is contained in:
Aarsh Shah 2021-08-25 16:44:25 +05:30 committed by GitHub
commit 7739051725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {