This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/main by this push:
     new ec4eb1d  Reuse coroutine context for the scraper
     new 1f3b9d4  Merge pull request #297 from atoulme/reuse_coroutine_context
ec4eb1d is described below

commit ec4eb1de6629d652ade913e6f5ea7019587f2fa2
Author: Antoine Toulme <anto...@lunar-ocean.com>
AuthorDate: Tue Jun 29 00:12:01 2021 +0200

    Reuse coroutine context for the scraper
---
 .../src/main/kotlin/org/apache/tuweni/eth/crawler/CrawlerApp.kt        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/eth-crawler/src/main/kotlin/org/apache/tuweni/eth/crawler/CrawlerApp.kt 
b/eth-crawler/src/main/kotlin/org/apache/tuweni/eth/crawler/CrawlerApp.kt
index c6fb3fb..6a4b1d0 100644
--- a/eth-crawler/src/main/kotlin/org/apache/tuweni/eth/crawler/CrawlerApp.kt
+++ b/eth-crawler/src/main/kotlin/org/apache/tuweni/eth/crawler/CrawlerApp.kt
@@ -82,7 +82,7 @@ object CrawlerApp {
 class CrawlerApplication(
   override val coroutineContext: CoroutineDispatcher =
     Executors.newFixedThreadPool(
-      20,
+      50,
       ThreadFactory {
         val thread = Thread("crawler")
         thread.isDaemon = true
@@ -109,6 +109,7 @@ class CrawlerApplication(
       initialURIs = config.bootNodes(),
       bindAddress = SocketAddress.inetSocketAddress(config.discoveryPort(), 
config.discoveryNetworkInterface()),
       repository = repo,
+      coroutineContext = coroutineContext,
     )
 
     val dnsDaemon = DNSDaemon(

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@tuweni.apache.org
For additional commands, e-mail: commits-h...@tuweni.apache.org

Reply via email to