Skip to content

Commit a851f2a

Browse files
committed
set MaxElapsedTime for the backoff
1 parent 2ffd833 commit a851f2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clients/tfchain-client-go/impl.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ func (m *manager) getHealthyConn() (*poolConn, error) {
208208

209209
b := backoff.NewExponentialBackOff()
210210
b.MaxInterval = 2 * time.Second
211+
b.MaxElapsedTime = 4 * time.Second
211212
b.InitialInterval = 500 * time.Millisecond
212213
b.Multiplier = 2
213214

0 commit comments

Comments
 (0)