Skip to content

Commit 01bb8e7

Browse files
authored
Merge pull request #672 from onflow/mpeter/update-backoff-retry-strategy
Use a constant backoff retry strategy for retrieving the Flow transaction result
2 parents 0de5ef9 + 39812e5 commit 01bb8e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/requester/pool.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ func (t *TxPool) Send(
6565
t.pool.Store(evmTx.Hash(), evmTx)
6666
defer t.pool.Delete(evmTx.Hash())
6767

68-
backoff := retry.WithMaxDuration(time.Minute*3, retry.NewFibonacci(time.Millisecond*100))
69-
68+
backoff := retry.WithMaxDuration(time.Minute*1, retry.NewConstant(time.Second*1))
7069
return retry.Do(ctx, backoff, func(ctx context.Context) error {
7170
res, err := t.client.GetTransactionResult(ctx, flowTx.ID())
7271
if err != nil {

0 commit comments

Comments
 (0)