diff --git a/logtail/backoff/backoff.go b/logtail/backoff/backoff.go index 72831f592..f135da52a 100644 --- a/logtail/backoff/backoff.go +++ b/logtail/backoff/backoff.go @@ -44,9 +44,8 @@ func NewBackoff(name string, logf logger.Logf, maxBackoff time.Duration) *Backof } } -// Backoff sleeps an increasing amount of time if err is non-nil. -// and the context is not a -// It resets the backoff schedule once err is nil. +// BackOff sleeps an increasing amount of time if err is non-nil while the +// context is active. It resets the backoff schedule once err is nil. func (b *Backoff) BackOff(ctx context.Context, err error) { if err == nil { // No error. Reset number of consecutive failures.