[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Define facades-histories downloader.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Define facades-histories downloader. |
Date: |
Fri, 29 May 2020 17:26:00 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 1331988 Define facades-histories downloader.
1331988 is described below
commit 1331988eb1dfed71e3dc6affe4116d1dcb103d26
Author: MS <ms@taler.net>
AuthorDate: Fri May 29 17:25:26 2020 +0200
Define facades-histories downloader.
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 68665a2..a3bfce4 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -250,6 +250,21 @@ suspend fun schedulePeriodicWork() {
// download TWG C52
// ingest TWG new histories
logger.debug("I am scheduled")
+ downloadFacadesTransactions()
+ }
+}
+
+/** Crawls all the facades, and requests history for each of its creators. */
+suspend fun downloadFacadesTransactions() {
+ transaction {
+ FacadeEntity.all()
+ }.forEach {
+ fetchTransactionsInternal(
+ HttpClient(),
+ it.creator,
+ it.config.bankAccount,
+ CollectedTransaction(null, null, null)
+ )
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Define facades-histories downloader.,
gnunet <=