Skip to content

Commit

Permalink
Merge branch 'hridoyroy/heartbeat-backoff' of github.com:hashicorp/ra…
Browse files Browse the repository at this point in the history
…ft into hridoyroy/heartbeat-backoff
  • Loading branch information
HridoyRoy committed Mar 17, 2022
2 parents 585ec5b + 47fe146 commit 9503919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ func cappedExponentialBackoff(base time.Duration, round, limit uint64, cap time.
base *= 2
power--
}
if base > cap {
return cap
}
return base
}

Expand Down

0 comments on commit 9503919

Please sign in to comment.