From dd76d3f220f22d0ade564938744c6a5a58e6e82f Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Thu, 18 Sep 2025 16:17:59 -0400 Subject: [PATCH] Send retries to logs more aggressively The old parameters were too gentle and inhibited the timely download of log entries. --- monitor/monitor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/monitor.go b/monitor/monitor.go index c41c6c1..2c381ba 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -61,7 +61,7 @@ func (e *verifyEntriesError) Error() string { } func withRetry(ctx context.Context, config *Config, ctlog *loglist.Log, maxRetries int, f func() error) error { - minSleep := 1 * time.Second + minSleep := 100 * time.Millisecond numRetries := 0 for ctx.Err() == nil { err := f() @@ -79,7 +79,7 @@ func withRetry(ctx context.Context, config *Config, ctlog *loglist.Log, maxRetri if err := sleep(ctx, sleepTime); err != nil { return err } - minSleep = min(minSleep*2, 5*time.Minute) + minSleep = min(minSleep*2, 30*time.Second) numRetries++ } return ctx.Err()