fix handling of end of sync

This commit is contained in:
vyzo 2020-09-21 09:21:25 +03:00
parent 6dfc40abc1
commit f135ec8468

View File

@ -1486,11 +1486,7 @@ func (syncer *Syncer) iterFullTipsets(ctx context.Context, headers []*types.TipS
batchSize := concurrentSyncRequests * syncRequestBatchSize
if i < batchSize {
if i == 0 {
batchSize = 1
} else {
batchSize = i
}
batchSize = i + 1
}
ss.SetStage(api.StageFetchingMessages)