From 08b351e598e919491018bd2effee2bfb3108ca19 Mon Sep 17 00:00:00 2001 From: Ariel Barmat <140773+abarmat@users.noreply.github.com> Date: Thu, 29 Feb 2024 12:40:57 -0300 Subject: [PATCH] indexer-service: increase the signer cache size and print the number loaded --- packages/indexer-service/src/allocations.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/indexer-service/src/allocations.ts b/packages/indexer-service/src/allocations.ts index 9345f7b18..406199aad 100644 --- a/packages/indexer-service/src/allocations.ts +++ b/packages/indexer-service/src/allocations.ts @@ -218,7 +218,7 @@ export const ensureAttestationSigners = ({ const logger = parentLogger.child({ component: 'AttestationSignerCache' }) const cache: AttestationSignerCache = new LRUCache(null, { - maxlen: 1000, + maxlen: 5000, }) const signers = allocations.map(async allocations => { @@ -263,8 +263,9 @@ export const ensureAttestationSigners = ({ }) signers.pipe(signers => { - logger.info(`Cached attestation signers`, { - allocations: [...signers.keys()], + const attestationSigners = [...signers.keys()] + logger.info(`Cached ${attestationSigners.length} attestation signers`, { + allocations: attestationSigners, }) })