[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: fix another HTTP client leak
From: |
gnunet |
Subject: |
[libeufin] branch master updated: fix another HTTP client leak |
Date: |
Wed, 17 Jun 2020 08:17:10 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new c8a4862 fix another HTTP client leak
c8a4862 is described below
commit c8a486298cdf7b6428a4536c20e70512da913dc3
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Wed Jun 17 11:45:02 2020 +0530
fix another HTTP client leak
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 2 +-
nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 1fbe7e8..af86c00 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -245,7 +245,7 @@ fun moreFrequentBackgroundTasks(httpClient: HttpClient) {
}
// FIXME: should be done automatically after raw ingestion
reportAndIgnoreErrors { ingestTalerTransactions() }
- reportAndIgnoreErrors { submitPreparedPaymentsViaEbics() }
+ reportAndIgnoreErrors { submitPreparedPaymentsViaEbics(httpClient)
}
logger.debug("More frequent background jobs done")
delay(Duration.ofSeconds(1))
}
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index e58b869..b4d2813 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -379,7 +379,7 @@ private suspend fun talerAddIncoming(call: ApplicationCall,
httpClient: HttpClie
// submits ALL the prepared payments from ALL the Taler facades.
// FIXME(dold): This should not be done here.
-suspend fun submitPreparedPaymentsViaEbics() {
+suspend fun submitPreparedPaymentsViaEbics(httpClient: HttpClient) {
data class EbicsSubmission(
val subscriberDetails: EbicsClientSubscriberDetails,
val pain001document: String
@@ -421,7 +421,6 @@ suspend fun submitPreparedPaymentsViaEbics() {
}
}
}
- val httpClient = HttpClient()
workQueue.forEach {
println("submitting prepared payment via EBICS")
doEbicsUploadTransaction(
--
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: fix another HTTP client leak,
gnunet <=