aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange/taler-exchange-transfer.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-transfer.c b/src/exchange/taler-exchange-transfer.c
index 261b4006f..011da6b57 100644
--- a/src/exchange/taler-exchange-transfer.c
+++ b/src/exchange/taler-exchange-transfer.c
@@ -201,7 +201,7 @@ static unsigned int shard_size = DEFAULT_BATCH_SIZE;
/**
* How many workers should we plan our scheduling with?
*/
-static unsigned int max_workers = 16;
+static unsigned int max_workers = 0;
/**
@@ -338,6 +338,15 @@ static void
run_transfers (void *cls);
+static void
+run_transfers_delayed (void *cls)
+{
+ (void) cls;
+ shard->shard_start_time = GNUNET_TIME_absolute_get ();
+ run_transfers (NULL);
+}
+
+
/**
* Select shard to process.
*
@@ -710,7 +719,7 @@ run_transfers (void *cls)
"No more pending wire transfers, going idle\n");
GNUNET_assert (NULL == task);
task = GNUNET_SCHEDULER_add_delayed (transfer_idle_sleep_interval,
- &run_transfers,
+ &run_transfers_delayed,
NULL);
}
return;