You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename MaxRetries to MaxAttempts and clamp to minimum 1
Renamed to MaxAttempts (CLI: --http-max-attempts, env: HTTP_MAX_ATTEMPTS)
so the semantics are clearer: maxAttempts=1 means one try (no retries),
maxAttempts=2 means one try plus one retry. Values below 1 are clamped
to 1 in the constructor to prevent misconfiguration where nothing would
be delivered.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: pkg/options/options.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ type HttpDeliveryOptions struct {
32
32
Enabledbool`long:"http-delivery"`
33
33
Addressstring`long:"http-delivery-address"`
34
34
AuthHeaderstring`long:"http-auth-header"`
35
-
MaxRetriesint`long:"http-max-retries" env:"HTTP_MAX_RETRIES" default:"1" description:"Maximum number of retry attempts for failed HTTP deliveries"`
35
+
MaxAttemptsint`long:"http-max-attempts" env:"HTTP_MAX_ATTEMPTS" default:"1" description:"Maximum number of delivery attempts (minimum 1, includes initial attempt)"`
36
36
InitialRetryDelayMsint`long:"http-initial-retry-delay-ms" env:"HTTP_INITIAL_RETRY_DELAY_MS" default:"250" description:"Initial retry delay in milliseconds (doubles with each retry)"`
0 commit comments