Configure exponential backoff so that it never stops retrying

This commit is contained in:
Lucas Soriano del Pino 2020-10-15 18:34:13 +11:00
parent 15f7932f7f
commit 08be87747f

View File

@ -111,7 +111,10 @@ impl WatchForTransfer for BobWallet<'_> {
Ok(proof) Ok(proof)
}) })
.retry(ExponentialBackoff::default()) .retry(ExponentialBackoff {
max_elapsed_time: None,
..Default::default()
})
.await; .await;
if let Err(Error::InsufficientFunds { expected, actual }) = res { if let Err(Error::InsufficientFunds { expected, actual }) = res {