chore: #64 add system hardening with retry logic for client #68

Merged
marcel.henselin merged 4 commits from fix/roundtripper into alpha 2026-02-16 09:35:21 +00:00
Showing only changes of commit 83cb45b57c - Show all commits

View file

@ -45,6 +45,17 @@ var (
_ provider.Provider = &Provider{}
)
const (
// maxRetries is the maximum number of retries for a failed HTTP request.
maxRetries = 3
// initialDelay is the initial delay before the first retry attempt.
initialDelay = 2 * time.Second
// maxDelay is the maximum delay between retry attempts.
maxDelay = 90 * time.Second
// perTryTimeout is the timeout for each individual HTTP request attempt.
perTryTimeout = 30 * time.Second
)
// Provider is the provider implementation.
type Provider struct {
version string