From e30f2123e69751d349fb7c88120a2eaf132dd4ae Mon Sep 17 00:00:00 2001 From: Michael Zaikin Date: Tue, 21 Dec 2021 17:45:58 +0100 Subject: [PATCH] Disable stale networks & further reduce batch size --- configs/production.yml | 44 +++++++++++++++++++------------------- internal/parsers/result.go | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/configs/production.yml b/configs/production.yml index 81a63c99f..bb1f67068 100644 --- a/configs/production.yml +++ b/configs/production.yml @@ -2,15 +2,15 @@ rpc: mainnet: uri: ${MAINNET_RPC_URI:-https://rpc.tzkt.io/mainnet} timeout: 20 - florencenet: - uri: ${TESTNET_RPC_URI:-https://rpc.tzkt.io/florencenobanet} - timeout: 20 - granadanet: - uri: ${NEXTNET_RPC_URI:-https://rpc.tzkt.io/granadanet} - timeout: 20 - hangzhounet: - uri: https://rpc.tzkt.io/hangzhounet - timeout: 20 +# florencenet: +# uri: ${TESTNET_RPC_URI:-https://rpc.tzkt.io/florencenobanet} +# timeout: 20 +# granadanet: +# uri: ${NEXTNET_RPC_URI:-https://rpc.tzkt.io/granadanet} +# timeout: 20 +# hangzhounet: +# uri: https://rpc.tzkt.io/hangzhounet +# timeout: 20 hangzhou2net: uri: https://rpc.tzkt.io/hangzhou2net timeout: 20 @@ -24,10 +24,10 @@ tzkt: services: mainnet: mempool: https://mempool.dipdup.net/v1/graphql - florencenet: - mempool: https://mempool.staging.dipdup.net/v1/graphql - hangzhounet: - mempool: https://mempool.staging.dipdup.net/v1/graphql +# florencenet: +# mempool: https://mempool.staging.dipdup.net/v1/graphql +# hangzhounet: +# mempool: https://mempool.staging.dipdup.net/v1/graphql hangzhou2net: mempool: https://mempool.staging.dipdup.net/v1/graphql @@ -71,9 +71,9 @@ api: sandbox_mode: false networks: - mainnet - - florencenet - - granadanet - - hangzhounet + # - florencenet + # - granadanet + # - hangzhounet - hangzhou2net pinata: key: ${PINATA_KEY} @@ -91,9 +91,9 @@ indexer: networks: mainnet: boost: tzkt - florencenet: - granadanet: - hangzhounet: + # florencenet: + # granadanet: + # hangzhounet: hangzhou2net: connections: max: 5 @@ -115,9 +115,9 @@ scripts: secret_access_key: ${AWS_SECRET_ACCESS_KEY} networks: - mainnet - - florencenet - - granadanet - - hangzhounet + # - florencenet + # - granadanet + # - hangzhounet - hangzhou2net connections: max: 5 diff --git a/internal/parsers/result.go b/internal/parsers/result.go index 80422eaa0..b8361a5c0 100644 --- a/internal/parsers/result.go +++ b/internal/parsers/result.go @@ -13,7 +13,7 @@ import ( ) const ( - batchSize = 100 + batchSize = 10 ) // Result -