fix shard delay calculation also for 'transfer' tool

This commit is contained in:
Christian Grothoff 2021-12-14 16:26:10 +01:00
parent 1a1fafbd43
commit 4cd70bc0a7
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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;