Skip to content

Commit

Permalink
Add TODO for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jul 23, 2024
1 parent 213f91b commit acf6471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runner/src/local-indexer/local-indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Indexer from '../indexer/indexer';
import LakeClient from '../lake-client/lake-client';

export default class LocalIndexer {
private readonly indexer: Indexer;
public readonly indexer: Indexer;
private readonly lakeClient: LakeClient;

constructor (config: LocalIndexerConfig) {
Expand All @@ -26,6 +26,7 @@ export default class LocalIndexer {
}

async executeOnBlock (blockHeight: number): Promise<void> {
// TODO: Cache Block data locally
const block = await this.lakeClient.fetchBlock(blockHeight);
await this.indexer.execute(block);
}
Expand Down

0 comments on commit acf6471

Please sign in to comment.