mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-28 05:39:25 +00:00
Update nlopes/slack vendor
This commit is contained in:
2
vendor/github.com/nlopes/slack/backoff.go
generated
vendored
2
vendor/github.com/nlopes/slack/backoff.go
generated
vendored
@ -38,7 +38,7 @@ func (b *backoff) Duration() time.Duration {
|
||||
}
|
||||
//calculate this duration
|
||||
dur := float64(b.Min) * math.Pow(b.Factor, float64(b.attempts))
|
||||
if b.Jitter == true {
|
||||
if b.Jitter {
|
||||
dur = rand.Float64()*(dur-float64(b.Min)) + float64(b.Min)
|
||||
}
|
||||
//cap!
|
||||
|
Reference in New Issue
Block a user