Skip to content

Commit

Permalink
Update pulsar/backoff/backoff.go
Browse files Browse the repository at this point in the history
Co-authored-by: Zike Yang <zike@apache.org>
  • Loading branch information
crossoverJie and RobertIndie authored Sep 18, 2024
1 parent 8d4e29e commit e8bf4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar/backoff/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewDefaultBackoff() Policy {
return &DefaultBackoff{}
}
func NewDefaultBackoffWithInitialBackOff(backoff time.Duration) Policy {
return &DefaultBackoff{backoff: backoff}
return &DefaultBackoff{backoff: backoff / 2}
}

const maxBackoff = 60 * time.Second
Expand Down

0 comments on commit e8bf4b2

Please sign in to comment.