From 928ac2191b5af51009bb7d085eb6a640c52bd500 Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Wed, 25 Aug 2021 16:19:02 +0530 Subject: [PATCH] fix throttling bug --- node/impl/storminer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node/impl/storminer.go b/node/impl/storminer.go index ff016259a..4e970343e 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 {