[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 04/07: comments, indentation.
From: |
gnunet |
Subject: |
[libeufin] 04/07: comments, indentation. |
Date: |
Wed, 12 Apr 2023 11:28:22 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 8ca8c368bca8ef9b2963a75eb83f9d32a0cd5eda
Author: MS <ms@taler.net>
AuthorDate: Wed Apr 12 11:09:38 2023 +0200
comments, indentation.
---
nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 4 +++-
sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt | 1 +
sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt | 1 -
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index ba37d8be..8cdbae02 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -506,15 +506,17 @@ private suspend fun historyIncoming(call:
ApplicationCall) {
/**
* NOTE: the LISTEN command MAY also go inside this transaction,
- * but that uses a connection other than the one provided by the
+ * but LISTEN uses a connection other than the one provided by the
* transaction block. More facts on the consequences are needed.
*/
var result: List<TalerIncomingPaymentEntity> = transaction {
TalerIncomingPaymentEntity.find { startCmpOp }.orderTaler(delta)
}
+ // The request was lucky, unlisten then.
if (result.isNotEmpty() && listenHandle != null)
listenHandle.postgresUnlisten()
+ // The request was NOT lucky, wait now.
if (result.isEmpty() && listenHandle != null && longPollTimeout != null) {
logger.debug("Waiting for NOTIFY on channel
${listenHandle.channelName}," +
" with timeout: $longPollTimeoutPar ms")
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
index d63dac33..d3786968 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
@@ -320,6 +320,7 @@ fun circuitApi(circuitRoute: Route) {
)
op.status = CashoutOperationStatus.CONFIRMED
op.confirmationTime = getUTCnow().toInstant().toEpochMilli()
+ // TODO(signal this payment over LIBEUFIN_REGIO_INCOMING)
}
call.respond(HttpStatusCode.NoContent)
return@post
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
index 54519bbb..a2454ff4 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
@@ -460,5 +460,4 @@ fun prepareEbicsPayload(
}
val enc = CryptoUtil.encryptEbicsE002(compressedResponse, pub)
return Pair(Base64.getEncoder().encodeToString(enc.encryptedData), enc)
-
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (1b9fbb02 -> bcf54117), gnunet, 2023/04/12
- [libeufin] 02/07: testing DB events, gnunet, 2023/04/12
- [libeufin] 01/07: Helpers., gnunet, 2023/04/12
- [libeufin] 04/07: comments, indentation.,
gnunet <=
- [libeufin] 07/07: comment, gnunet, 2023/04/12
- [libeufin] 05/07: DB events., gnunet, 2023/04/12
- [libeufin] 03/07: helper, gnunet, 2023/04/12
- [libeufin] 06/07: DB events at Access API., gnunet, 2023/04/12