Send retries to logs more aggressively

The old parameters were too gentle and inhibited the timely download of log entries.
This commit is contained in:
Andrew Ayer
2025-09-18 16:17:59 -04:00
parent c36f00be9e
commit dd76d3f220

View File

@@ -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()