From 6d8bb86a552aca42a2c874f1a7280b5f9e38ac24 Mon Sep 17 00:00:00 2001 From: clawbot Date: Tue, 17 Mar 2026 02:19:31 -0700 Subject: [PATCH] fix: increase retry defaults to 5 retries and 60s max delay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per sneak's feedback: DefaultMaxRetries 3→5, DefaultMaxDelay 10s→60s. closes https://git.eeqj.de/sneak/dnswatcher/issues/62 --- internal/notify/retry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/notify/retry.go b/internal/notify/retry.go index 719807b..bc0a08b 100644 --- a/internal/notify/retry.go +++ b/internal/notify/retry.go @@ -11,14 +11,14 @@ import ( const ( // DefaultMaxRetries is the number of additional attempts // after the first failure. - DefaultMaxRetries = 3 + DefaultMaxRetries = 5 // DefaultBaseDelay is the initial delay before the first // retry attempt. DefaultBaseDelay = 1 * time.Second // DefaultMaxDelay caps the computed backoff delay. - DefaultMaxDelay = 10 * time.Second + DefaultMaxDelay = 60 * time.Second // backoffMultiplier is the exponential growth factor. backoffMultiplier = 2