From 28bc695ab7702d0efa58f6c6acea07639ca64934 Mon Sep 17 00:00:00 2001 From: v Date: Fri, 21 Jun 2024 22:21:52 +0200 Subject: [PATCH] lower parallelism --- constants/{ogun.go => app.go} | 4 ++-- containers/docker-compose.yml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) rename constants/{ogun.go => app.go} (84%) diff --git a/constants/ogun.go b/constants/app.go similarity index 84% rename from constants/ogun.go rename to constants/app.go index c1f7cc3..0cdb51c 100644 --- a/constants/ogun.go +++ b/constants/app.go @@ -7,8 +7,8 @@ const ( OGUN_MINIMUM_DIFF_TOLERANCE = 1 RPC_INIT_BATCH_SIZE = 3 - OGUN_DELEGATE_FETCH_BATCH_SIZE = 25 - CONTRACT_FETCH_BATCH_SIZE = 200 + OGUN_DELEGATE_FETCH_BATCH_SIZE = 8 + CONTRACT_FETCH_BATCH_SIZE = 50 BALANCE_FETCH_RETRY_DELAY_SECONDS = 20 BALANCE_FETCH_RETRY_ATTEMPTS = 3 diff --git a/containers/docker-compose.yml b/containers/docker-compose.yml index 93d2a4f..796ade5 100644 --- a/containers/docker-compose.yml +++ b/containers/docker-compose.yml @@ -19,6 +19,9 @@ services: ports: - "127.0.0.1:8080:8080" - "127.0.0.1:8081:8081" + environment: + LISTEN: 127.0.0.1:8080 + PRIVATE_LISTEN: 127.0.0.1:8081 volumes: - ./config.hjson:/config.hjson:ro depends_on: