aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-06-11 11:39:30 +0200
committerChristian Grothoff <christian@grothoff.org>2024-06-11 11:39:37 +0200
commit07600800675faa5192fd0384a6811514f6c826ae (patch)
tree656d5a90aee6e262a7fb2fc035f79e60cec431da
parent10bc0e6ae1e19e98a8c45e75f0517666eee62e3a (diff)
fix auto-restart on DB down
-rw-r--r--debian/changelog1
-rw-r--r--src/backend/taler-merchant-exchange.c11
-rw-r--r--src/backend/taler-merchant-webhook.c4
-rw-r--r--src/backend/taler-merchant-wirewatch.c4
4 files changed, 11 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index 2bfb0bf6..9f41a83e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ taler-merchant (0.11.4) unstable; urgency=low
taler-merchant (0.11.3) unstable; urgency=low
+ * Remove legacy user-type from API.
* Importing bank account info.
-- Sebastian Marchano <sebasjm@taler.net> Mon 3 Jun 2024 13:20:12 -0300
diff --git a/src/backend/taler-merchant-exchange.c b/src/backend/taler-merchant-exchange.c
index 7945cb50..72566e9b 100644
--- a/src/backend/taler-merchant-exchange.c
+++ b/src/backend/taler-merchant-exchange.c
@@ -32,8 +32,8 @@
* long-polling and do not want to wake up too often.
*/
#define EXCHANGE_TIMEOUT GNUNET_TIME_relative_multiply ( \
- GNUNET_TIME_UNIT_MINUTES, \
- 30)
+ GNUNET_TIME_UNIT_MINUTES, \
+ 30)
/**
* How many inquiries do we process concurrently at most.
@@ -1154,7 +1154,8 @@ find_work (void *cls)
return;
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "No open inquiries found, waiting for notification to resume\n");
+ "No open inquiries found, waiting for notification to resume\n")
+ ;
}
}
@@ -1215,7 +1216,7 @@ run (void *cls,
{
GNUNET_break (0);
GNUNET_SCHEDULER_shutdown ();
- global_ret = EXIT_NO_RESTART;
+ global_ret = EXIT_FAILURE;
return;
}
if (NULL ==
@@ -1233,7 +1234,7 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to connect to database\n");
GNUNET_SCHEDULER_shutdown ();
- global_ret = EXIT_NO_RESTART;
+ global_ret = EXIT_FAILURE;
return;
}
{
diff --git a/src/backend/taler-merchant-webhook.c b/src/backend/taler-merchant-webhook.c
index 80db78fd..1d17843e 100644
--- a/src/backend/taler-merchant-webhook.c
+++ b/src/backend/taler-merchant-webhook.c
@@ -506,7 +506,7 @@ run (void *cls,
{
GNUNET_break (0);
GNUNET_SCHEDULER_shutdown ();
- global_ret = EXIT_NO_RESTART;
+ global_ret = EXIT_FAILURE;
return;
}
if (NULL ==
@@ -524,7 +524,7 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to connect to database\n");
GNUNET_SCHEDULER_shutdown ();
- global_ret = EXIT_NO_RESTART;
+ global_ret = EXIT_FAILURE;
return;
}
{
diff --git a/src/backend/taler-merchant-wirewatch.c b/src/backend/taler-merchant-wirewatch.c
index 17eb7a0a..bba101e3 100644
--- a/src/backend/taler-merchant-wirewatch.c
+++ b/src/backend/taler-merchant-wirewatch.c
@@ -641,7 +641,7 @@ run (void *cls,
{
GNUNET_break (0);
GNUNET_SCHEDULER_shutdown ();
- global_ret = EXIT_NO_RESTART;
+ global_ret = EXIT_FAILURE;
return;
}
if (NULL ==
@@ -659,7 +659,7 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to connect to database\n");
GNUNET_SCHEDULER_shutdown ();
- global_ret = EXIT_NO_RESTART;
+ global_ret = EXIT_FAILURE;
return;
}
{