summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_get_ready_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-23 13:40:07 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-23 13:40:07 +0100
commit505ea0a0431d54dd8be76cb6ca6c7846db04d76f (patch)
tree0bc6c9abdca5db9098a6ffcad01903cc8434754f /src/exchangedb/pg_get_ready_deposit.c
parent9d43bf92c45e771afdada11851393e0a82a91078 (diff)
downloadexchange-505ea0a0431d54dd8be76cb6ca6c7846db04d76f.tar.gz
exchange-505ea0a0431d54dd8be76cb6ca6c7846db04d76f.tar.bz2
exchange-505ea0a0431d54dd8be76cb6ca6c7846db04d76f.zip
-starting point for Joseph
Diffstat (limited to 'src/exchangedb/pg_get_ready_deposit.c')
-rw-r--r--src/exchangedb/pg_get_ready_deposit.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/exchangedb/pg_get_ready_deposit.c b/src/exchangedb/pg_get_ready_deposit.c
index 741a480d2..af1235293 100644
--- a/src/exchangedb/pg_get_ready_deposit.c
+++ b/src/exchangedb/pg_get_ready_deposit.c
@@ -28,10 +28,10 @@
enum GNUNET_DB_QueryStatus
TEH_PG_get_ready_deposit (void *cls,
- uint64_t start_shard_row,
- uint64_t end_shard_row,
- struct TALER_MerchantPublicKeyP *merchant_pub,
- char **payto_uri)
+ uint64_t start_shard_row,
+ uint64_t end_shard_row,
+ struct TALER_MerchantPublicKeyP *merchant_pub,
+ char **payto_uri)
{
struct PostgresClosure *pg = cls;
struct GNUNET_TIME_Absolute now = {0};
@@ -57,9 +57,6 @@ TEH_PG_get_ready_deposit (void *cls,
"Finding ready deposits by deadline %s (%llu)\n",
GNUNET_TIME_absolute2s (now),
(unsigned long long) now.abs_value_us);
-
-
- /* Used in #postgres_get_ready_deposit() */
PREPARE (pg,
"deposits_get_ready",
"SELECT"
@@ -78,17 +75,8 @@ TEH_PG_get_ready_deposit (void *cls,
" dbr.wire_deadline ASC"
" ,dbr.shard ASC"
" LIMIT 1;");
-
-
-
return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
"deposits_get_ready",
params,
rs);
}
-
-
-
-
-
-