Skip to content

Commit

Permalink
Merge pull request #2 from wakumo/fix/disable-cache-events
Browse files Browse the repository at this point in the history
fix: disable cache events
  • Loading branch information
longhoangwkm authored Dec 5, 2024
2 parents 61affad + 7893baf commit f354e81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/apis/processed-block/processed-block.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f354e81

Please # to comment.