Revert "Avoid calling get-entries when range is invalid (end < begin)"
This reverts commit 71b296141e
.
This commit is contained in:
parent
71b296141e
commit
5769c83cf3
|
@ -418,13 +418,11 @@ func downloadWorker(ctx context.Context, config *Config, ctlog *loglist.Log, cli
|
||||||
case batch = <-batchesIn:
|
case batch = <-batchesIn:
|
||||||
}
|
}
|
||||||
|
|
||||||
if batch.end > batch.begin {
|
|
||||||
entries, err := getEntriesFull(ctx, client, batch.begin, batch.end)
|
entries, err := getEntriesFull(ctx, client, batch.begin, batch.end)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
batch.entries = entries
|
batch.entries = entries
|
||||||
}
|
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|
Loading…
Reference in New Issue