Revert "Avoid calling get-entries when range is invalid (end < begin)"

This reverts commit 71b296141e.
This commit is contained in:
Andrew Ayer 2025-05-06 15:10:58 -04:00
parent 71b296141e
commit 5769c83cf3
1 changed files with 4 additions and 6 deletions

View File

@ -418,13 +418,11 @@ func downloadWorker(ctx context.Context, config *Config, ctlog *loglist.Log, cli
case batch = <-batchesIn:
}
if batch.end > batch.begin {
entries, err := getEntriesFull(ctx, client, batch.begin, batch.end)
if err != nil {
return err
}
batch.entries = entries
entries, err := getEntriesFull(ctx, client, batch.begin, batch.end)
if err != nil {
return err
}
batch.entries = entries
select {
case <-ctx.Done():