diff --git a/node/impl/storminer.go b/node/impl/storminer.go index ff016259a1a..4e970343e12 100644 --- a/node/impl/storminer.go +++ b/node/impl/storminer.go @@ -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 {