mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
logtail/backoff: update Backoff.BackOff docs (#12229)
Update #cleanup Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
parent
538c2e8f7c
commit
4214e5f71b
@ -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.
|
// BackOff sleeps an increasing amount of time if err is non-nil while the
|
||||||
// and the context is not a
|
// context is active. It resets the backoff schedule once err is nil.
|
||||||
// It resets the backoff schedule once err is nil.
|
|
||||||
func (b *Backoff) BackOff(ctx context.Context, err error) {
|
func (b *Backoff) BackOff(ctx context.Context, err error) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
// No error. Reset number of consecutive failures.
|
// No error. Reset number of consecutive failures.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user