From be0b2aad27dc820d113ed038e2764276e65fe1ca Mon Sep 17 00:00:00 2001 From: teslaedison Date: Thu, 13 Mar 2025 10:45:02 +0800 Subject: [PATCH] remove repetitive words Signed-off-by: teslaedison --- management/events.go | 2 +- retry/backoffhandler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/management/events.go b/management/events.go index 528bae18..2983f875 100644 --- a/management/events.go +++ b/management/events.go @@ -129,7 +129,7 @@ func (e *LogEventType) UnmarshalJSON(data []byte) error { // LogLevel corresponds to the zerolog logging levels // "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 const ( diff --git a/retry/backoffhandler.go b/retry/backoffhandler.go index f8989481..945541a3 100644 --- a/retry/backoffhandler.go +++ b/retry/backoffhandler.go @@ -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. func (b *BackoffHandler) SetGracePeriod() time.Duration { maxTimeToWait := b.GetBaseTime() * 2 << (b.retries + 1)