fix: add retry configuration for HTTP requests in provider

This commit is contained in:
Andre_Harms 2026-02-16 10:00:15 +01:00
parent bbdb85adfe
commit 83cb45b57c

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