Skip to content

Commit

Permalink
set MaxElapsedTime for the backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Nov 17, 2024
1 parent 2ffd833 commit a851f2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/tfchain-client-go/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (m *manager) getHealthyConn() (*poolConn, error) {

b := backoff.NewExponentialBackOff()
b.MaxInterval = 2 * time.Second
b.MaxElapsedTime = 4 * time.Second
b.InitialInterval = 500 * time.Millisecond
b.Multiplier = 2

Expand Down

0 comments on commit a851f2a

Please sign in to comment.