add missing return for deferrals during initial sync

This commit is contained in:
vyzo 2020-10-29 09:40:41 +02:00
parent ad905fc310
commit a26420f6e8

View File

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