[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -update to match latest GNUnet A
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -update to match latest GNUnet APIs |
Date: |
Mon, 23 Aug 2021 00:03:10 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 287527d0 -update to match latest GNUnet APIs
287527d0 is described below
commit 287527d0da1777dd1c256ef01e87f43631b6b1d4
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Aug 23 00:03:04 2021 +0200
-update to match latest GNUnet APIs
---
src/backend/taler-merchant-httpd.c | 1 +
src/backenddb/plugin_merchantdb_postgres.c | 3 +++
src/include/taler_merchantdb_plugin.h | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/backend/taler-merchant-httpd.c
b/src/backend/taler-merchant-httpd.c
index ea7a6c62..d48c2f92 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -2214,6 +2214,7 @@ run (void *cls,
instance_eh = TMH_db->event_listen (TMH_db->cls,
&es,
+ GNUNET_TIME_UNIT_FOREVER_REL,
&load_instances,
NULL);
}
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index 5cf38d9b..3036a439 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -158,6 +158,7 @@ postgres_create_tables (void *cls)
*
* @param cls database context to use
* @param es specification of the event to listen for
+ * @param timeout how long to wait for the event
* @param cb function to call when the event happens, possibly
* multiple times (until cancel is invoked)
* @param cb_cls closure for @a cb
@@ -166,6 +167,7 @@ postgres_create_tables (void *cls)
static struct GNUNET_DB_EventHandler *
postgres_event_listen (void *cls,
const struct GNUNET_DB_EventHeaderP *es,
+ struct GNUNET_TIME_Relative timeout,
GNUNET_DB_EventCallback cb,
void *cb_cls)
{
@@ -173,6 +175,7 @@ postgres_event_listen (void *cls,
return GNUNET_PQ_event_listen (pg->conn,
es,
+ timeout,
cb,
cb_cls);
}
diff --git a/src/include/taler_merchantdb_plugin.h
b/src/include/taler_merchantdb_plugin.h
index 559941b6..36f28094 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -721,6 +721,7 @@ struct TALER_MERCHANTDB_Plugin
*
* @param cls database context to use
* @param es specification of the event to listen for
+ * @param timeout how long to wait for the event
* @param cb function to call when the event happens, possibly
* multiple times (until cancel is invoked)
* @param cb_cls closure for @a cb
@@ -729,6 +730,7 @@ struct TALER_MERCHANTDB_Plugin
struct GNUNET_DB_EventHandler *
(*event_listen)(void *cls,
const struct GNUNET_DB_EventHeaderP *es,
+ struct GNUNET_TIME_Relative timeout,
GNUNET_DB_EventCallback cb,
void *cb_cls);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: -update to match latest GNUnet APIs,
gnunet <=