diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-26 17:37:33 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-26 17:37:33 +0200 |
commit | 3ab7f8b8409fab8fa0e4e041bd9676c4d5eb935c (patch) | |
tree | 728caededcdddda70e8517f763d95bde9d00e5ed /src/exchange-lib/testing_api_cmd_refresh.c | |
parent | eada4b9ecdd5aced1ce408b716899fc95db416d7 (diff) |
use randomized backoff
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_refresh.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_refresh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange-lib/testing_api_cmd_refresh.c b/src/exchange-lib/testing_api_cmd_refresh.c index 788e82a0b..3ca04d220 100644 --- a/src/exchange-lib/testing_api_cmd_refresh.c +++ b/src/exchange-lib/testing_api_cmd_refresh.c @@ -322,7 +322,7 @@ reveal_cb (void *cls, if (TALER_EC_DB_COMMIT_FAILED_ON_RETRY == ec) rrs->backoff = GNUNET_TIME_UNIT_ZERO; else - rrs->backoff = GNUNET_TIME_STD_BACKOFF (rrs->backoff); + rrs->backoff = GNUNET_TIME_randomized_backoff (rrs->backoff); rrs->retry_task = GNUNET_SCHEDULER_add_delayed (rrs->backoff, &do_reveal_retry, rrs); @@ -551,7 +551,7 @@ link_cb (void *cls, if (TALER_EC_DB_COMMIT_FAILED_ON_RETRY == ec) rls->backoff = GNUNET_TIME_UNIT_ZERO; else - rls->backoff = GNUNET_TIME_STD_BACKOFF (rls->backoff); + rls->backoff = GNUNET_TIME_randomized_backoff (rls->backoff); rls->retry_task = GNUNET_SCHEDULER_add_delayed (rls->backoff, &do_link_retry, rls); @@ -837,7 +837,7 @@ melt_cb (void *cls, if (TALER_EC_DB_COMMIT_FAILED_ON_RETRY == ec) rms->backoff = GNUNET_TIME_UNIT_ZERO; else - rms->backoff = GNUNET_TIME_STD_BACKOFF (rms->backoff); + rms->backoff = GNUNET_TIME_randomized_backoff (rms->backoff); rms->retry_task = GNUNET_SCHEDULER_add_delayed (rms->backoff, &do_melt_retry, rms); |