gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: keep Sandbox single-threaded


From: gnunet
Subject: [libeufin] branch master updated: keep Sandbox single-threaded
Date: Tue, 23 Aug 2022 10:43:14 +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 00fbe798 keep Sandbox single-threaded
00fbe798 is described below

commit 00fbe7983c84160b29944f259586fa7af812678b
Author: MS <ms@taler.net>
AuthorDate: Tue Aug 23 10:42:21 2022 +0200

    keep Sandbox single-threaded
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index b899309f..7256684b 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -95,6 +95,7 @@ import java.net.URL
 import java.security.interfaces.RSAPublicKey
 import java.util.concurrent.Executors
 import javax.xml.bind.JAXBContext
+import kotlin.coroutines.CoroutineContext
 import kotlin.system.exitProcess
 
 val logger: Logger = LoggerFactory.getLogger("tech.libeufin.sandbox")
@@ -1616,7 +1617,13 @@ fun serverMain(port: Int) {
                 this.port = port
                 this.host = "[::1]"
             }
+            parentCoroutineContext = Dispatchers.Main
             module(sandboxApp)
+        },
+        configure = {
+            connectionGroupSize = 1
+            workerGroupSize = 1
+            callGroupSize = 1
         }
     )
     logger.info("LibEuFin Sandbox running on port $port")

-- 
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]