gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: nexus submit


From: gnunet
Subject: [libeufin] branch master updated: nexus submit
Date: Wed, 08 Nov 2023 09:32:07 +0100

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 fcfd5497 nexus submit
fcfd5497 is described below

commit fcfd5497b88399fa7c6f74e61c868b2e9b947ecf
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 8 09:30:49 2023 +0100

    nexus submit
    
    allowing --transient to run without checking the FREQUENCY
    configuration value
---
 nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSubmit.kt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSubmit.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSubmit.kt
index b90c2879..990ad1cb 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSubmit.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSubmit.kt
@@ -258,11 +258,6 @@ class EbicsSubmit : CliktCommand("Submits any initiated 
payment found in the dat
         }
         // Fail now if keying is incomplete.
         if (!isKeyingComplete(cfg)) exitProcess(1)
-        val frequency: NexusFrequency = doOrFail {
-            val configValue = cfg.config.requireString("nexus-submit", 
"frequency")
-            val frequencySeconds = checkFrequency(configValue)
-            return@doOrFail NexusFrequency(frequencySeconds, configValue)
-        }
         val dbCfg = cfg.config.extractDbConfigOrFail()
         val db = Database(dbCfg.dbConnStr)
         val httpClient = HttpClient()
@@ -281,6 +276,11 @@ class EbicsSubmit : CliktCommand("Submits any initiated 
payment found in the dat
             submitBatch(cfg, db, httpClient, clientKeys, bankKeys)
             return
         }
+        val frequency: NexusFrequency = doOrFail {
+            val configValue = cfg.config.requireString("nexus-submit", 
"frequency")
+            val frequencySeconds = checkFrequency(configValue)
+            return@doOrFail NexusFrequency(frequencySeconds, configValue)
+        }
         logger.debug("Running with a frequency of ${frequency.fromConfig}")
         if (frequency.inSeconds == 0) {
             logger.warn("Long-polling not implemented, running therefore in 
transient mode")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]