From 5769c83cf354a02fa328f0780095c2cb80cc1294 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Tue, 6 May 2025 15:10:58 -0400 Subject: [PATCH] Revert "Avoid calling get-entries when range is invalid (end < begin)" This reverts commit 71b296141ed278d9a808689aad0444324fe37cb6. --- monitor/monitor.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/monitor/monitor.go b/monitor/monitor.go index 6d4f070..8b8cbd4 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -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():