This commit is contained in:
teslaedison 2025-03-20 11:03:12 -05:00 committed by GitHub
commit 229d5658ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ func (e *LogEventType) UnmarshalJSON(data []byte) error {
// LogLevel corresponds to the zerolog logging levels // LogLevel corresponds to the zerolog logging levels
// "panic", "fatal", and "trace" are exempt from this list as they are rarely used and, at least // "panic", "fatal", and "trace" are exempt from this list as they are rarely used and, at least
// the the first two are limited to failure conditions that lead to cloudflared shutting down. // the first two are limited to failure conditions that lead to cloudflared shutting down.
type LogLevel int8 type LogLevel int8
const ( const (

View File

@ -99,7 +99,7 @@ func (b *BackoffHandler) Backoff(ctx context.Context) bool {
} }
} }
// Sets a grace period within which the the backoff timer is maintained. After the grace // Sets a grace period within which the backoff timer is maintained. After the grace
// period expires, the number of retries & backoff duration is reset. // period expires, the number of retries & backoff duration is reset.
func (b *BackoffHandler) SetGracePeriod() time.Duration { func (b *BackoffHandler) SetGracePeriod() time.Duration {
maxTimeToWait := b.GetBaseTime() * 2 << (b.retries + 1) maxTimeToWait := b.GetBaseTime() * 2 << (b.retries + 1)