Skip to content

Commit

Permalink
Add comment for exported var DefaultExponential.
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Aug 22, 2019
1 parent ab8d9e8 commit 1c683d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/backoff/backoff.go
Expand Up @@ -51,6 +51,9 @@ const (
maxDelay = 120 * time.Second
)

// DefaultExponential is an exponential backoff implementation using the
// default values for all the configurable knobs defined in
// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md.
var DefaultExponential = Exponential{BaseDelay: baseDelay, Multiplier: factor, Jitter: jitter, MaxDelay: maxDelay}

// Exponential implements exponential backoff algorithm as defined in
Expand Down

0 comments on commit 1c683d2

Please sign in to comment.