summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-wirewatch.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-24 10:45:01 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-24 10:45:01 +0200
commit8e71a7e4de8c07767e8e11e745d9a7fc3bacc94f (patch)
tree9580279a327354eff572e25e4e5e901b18b428e5 /src/exchange/taler-exchange-wirewatch.c
parent92e04e0a3f31a9407b3f8e6e8f615000a57c726f (diff)
downloadexchange-8e71a7e4de8c07767e8e11e745d9a7fc3bacc94f.tar.gz
exchange-8e71a7e4de8c07767e8e11e745d9a7fc3bacc94f.tar.bz2
exchange-8e71a7e4de8c07767e8e11e745d9a7fc3bacc94f.zip
lock into the future, instead of lock into past
Diffstat (limited to 'src/exchange/taler-exchange-wirewatch.c')
-rw-r--r--src/exchange/taler-exchange-wirewatch.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
index 85e73d1be..a14356273 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -417,12 +417,22 @@ schedule_transfers (struct WireAccount *wa)
wa = wa_head;
GNUNET_assert (NULL != wa);
}
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Will try to lock next shard of %s in %s\n",
- wa->job_name,
- GNUNET_STRINGS_relative_time_to_string (
- GNUNET_TIME_absolute_get_remaining (wa->delayed_until),
- GNUNET_YES));
+ if (shard_done)
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Will retry my shard (%llu,%llu] of %s in %s\n",
+ (unsigned long long) wa->shard_start,
+ (unsigned long long) wa->shard_end,
+ wa->job_name,
+ GNUNET_STRINGS_relative_time_to_string (
+ GNUNET_TIME_absolute_get_remaining (wa->delayed_until),
+ GNUNET_YES));
+ else
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Will try to lock next shard of %s in %s\n",
+ wa->job_name,
+ GNUNET_STRINGS_relative_time_to_string (
+ GNUNET_TIME_absolute_get_remaining (wa->delayed_until),
+ GNUNET_YES));
GNUNET_assert (NULL == task);
task = GNUNET_SCHEDULER_add_at (wa->delayed_until,
&lock_shard,