[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sync] branch master updated: -move AML_THRESHOLD option to exchan
From: |
gnunet |
Subject: |
[taler-sync] branch master updated: -move AML_THRESHOLD option to exchange |
Date: |
Sat, 13 May 2023 20:22:12 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository sync.
The following commit(s) were added to refs/heads/master by this push:
new 6f65209 -move AML_THRESHOLD option to exchange
6f65209 is described below
commit 6f65209d7d4b2262fb1360cc4fe5360d0d609dd8
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat May 13 20:22:10 2023 +0200
-move AML_THRESHOLD option to exchange
---
debian/sync-httpd.service | 4 +++-
src/sync/sync-httpd.c | 7 +------
src/testing/test_sync_api.conf | 3 ++-
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/debian/sync-httpd.service b/debian/sync-httpd.service
index 2c97c37..4138027 100644
--- a/debian/sync-httpd.service
+++ b/debian/sync-httpd.service
@@ -4,7 +4,9 @@ Description=Sync backup backend
[Service]
User=sync-httpd
Type=simple
-Restart=on-failure
+Restart=always
+RestartSec=1s
+RuntimeMaxSec=3600s
ExecStart=/usr/bin/sync-httpd -c /etc/sync/sync.conf
[Install]
diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c
index edb8212..0c9823a 100644
--- a/src/sync/sync-httpd.c
+++ b/src/sync/sync-httpd.c
@@ -194,14 +194,13 @@ url_handler (void *cls,
&SH_MHD_handler_static_response, MHD_HTTP_NOT_FOUND
};
- struct TM_HandlerContext *hc;
+ struct TM_HandlerContext *hc = *con_cls;
struct GNUNET_AsyncScopeId aid;
const char *correlation_id = NULL;
struct SYNC_AccountPublicKeyP account_pub;
(void) cls;
(void) version;
- hc = *con_cls;
if (NULL == hc)
{
GNUNET_async_scope_fresh (&aid);
@@ -543,10 +542,6 @@ run (void *cls,
result = EXIT_NOTCONFIGURED;
GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
NULL);
- GNUNET_assert (GNUNET_OK ==
- GNUNET_log_setup ("sync-httpd",
- "WARNING",
- NULL));
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_number (config,
"sync",
diff --git a/src/testing/test_sync_api.conf b/src/testing/test_sync_api.conf
index 3a29bc1..8574648 100644
--- a/src/testing/test_sync_api.conf
+++ b/src/testing/test_sync_api.conf
@@ -17,7 +17,6 @@ TALER_CACHE_HOME = $TALER_HOME/.cache/taler/
[taler]
# What currency do we use?
CURRENCY = EUR
-AML_THRESHOLD = EUR:1000000
CURRENCY_ROUND_UNIT = EUR:0.01
[taler-helper-crypto-rsa]
@@ -36,6 +35,8 @@ HTTP_PORT = 8082
# Sync config
[sync]
+AML_THRESHOLD = EUR:1000000
+
# Which port do we run the *sync* backend on? (HTTP server)
PORT = 8084
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-sync] branch master updated: -move AML_THRESHOLD option to exchange,
gnunet <=