Skip to content

Commit

Permalink
indexer-service: increase the signer cache size and print the number …
Browse files Browse the repository at this point in the history
…loaded
  • Loading branch information
abarmat authored and Theodus committed Feb 29, 2024
1 parent 68b4cd9 commit 08b351e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/indexer-service/src/allocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -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,
})
})

Expand Down

0 comments on commit 08b351e

Please sign in to comment.