From 7893bafa840876813c5e4c56a4af827f08e299f5 Mon Sep 17 00:00:00 2001 From: "longhoang.wkm" Date: Thu, 5 Dec 2024 10:36:54 +0700 Subject: [PATCH] fix: disable cache events --- src/apis/processed-block/processed-block.service.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/apis/processed-block/processed-block.service.ts b/src/apis/processed-block/processed-block.service.ts index 762d258..f22b987 100644 --- a/src/apis/processed-block/processed-block.service.ts +++ b/src/apis/processed-block/processed-block.service.ts @@ -118,10 +118,7 @@ export class ProcessedBlockService { topics: string[], scanRangeNo: number, ) { - const registedEvents = await this.cacheManager.findOrCache( - this.eventService.getEventsByChain.bind(null, scanOptions.chain_id), - `EventsByChain.${scanOptions.chain_id}` - ); + const registedEvents = await this.eventService.getEventsByChain(scanOptions.chain_id); const [fromBlock, toBlock] = await this._getBlockRange(nodeUrl, scanOptions); const isRescan = !!(scanOptions.from_block && scanOptions.to_block); const blockRangeChunks = chunkArray(fromBlock, toBlock, scanRangeNo);