Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
⚡ Add log to keep user informed of the genesis asset indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Nov 8, 2023
1 parent 897fc14 commit 6e5520f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions services/blockchain-indexer/shared/indexer/genesisBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,13 @@ const indexPosModuleAssets = async dbTrx => {

const indexGenesisBlockAssets = async dbTrx => {
logger.info('Starting to index the genesis assets.');
const IntervalTimeout = setInterval(
() => logger.info('Genesis assets indexing still in progress...'),
5000,
);
await indexTokenModuleAssets(dbTrx);
await indexPosModuleAssets(dbTrx);
clearInterval(IntervalTimeout);
logger.info('Finished indexing all the genesis assets.');
};

Expand Down

0 comments on commit 6e5520f

Please sign in to comment.