gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: fix shard delay calculation also


From: gnunet
Subject: [taler-exchange] branch master updated: fix shard delay calculation also for 'transfer' tool
Date: Tue, 14 Dec 2021 16:26:13 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 4cd70bc0 fix shard delay calculation also for 'transfer' tool
4cd70bc0 is described below

commit 4cd70bc0a7d565547d673fcef2cade2ee2df4a4b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Dec 14 16:26:10 2021 +0100

    fix shard delay calculation also for 'transfer' tool
---
 src/exchange/taler-exchange-transfer.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-transfer.c 
b/src/exchange/taler-exchange-transfer.c
index 261b4006..011da6b5 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]