From a26420f6e8aeb6b522b669c68d1a75440c6e3262 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 29 Oct 2020 09:40:41 +0200 Subject: [PATCH] add missing return for deferrals during initial sync --- chain/sync_manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chain/sync_manager.go b/chain/sync_manager.go index 800fbfd6e..c681c8c5b 100644 --- a/chain/sync_manager.go +++ b/chain/sync_manager.go @@ -396,6 +396,7 @@ func (sm *syncManager) addSyncTarget(ts *types.TipSet) (*types.TipSet, bool, err if !sm.initialSync || len(sm.state) >= MaxSyncWorkers { log.Infof("deferring sync on %s", ts) sm.deferred.Insert(ts) + return nil, false, nil } // start a new worker, seems heavy enough and unrelated to active or pending syncs