Skip to content

Commit

Permalink
stop the rewards indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecot committed Oct 16, 2024
1 parent 99bf3b0 commit 06592b0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/indexer/restrpc_agregators/RestRpcAgreagorsCaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ export async function RestRpcAgreagorsCaller(db: PostgresJsDatabase): Promise<vo
return;
}

logger.info(`ProcessDualStackingDelegatorRewards started at: ${new Date().toISOString()}`);
try {
const start = Date.now();
await ProcessDualStackingDelegatorRewards(db);
const executionTime = Date.now() - start;
logger.info(`Successfully executed ProcessDualStackingDelegatorRewards. Execution time: ${executionTime} ms`);
} catch (e) {
logger.error(`Failed to execute ProcessDualStackingDelegatorRewards. Error: ${(e as Error).message}`, { stack: (e as Error).stack });
isRunning = false;
return;
}
// logger.info(`ProcessDualStackingDelegatorRewards started at: ${new Date().toISOString()}`);
// try {
// const start = Date.now();
// await ProcessDualStackingDelegatorRewards(db);
// const executionTime = Date.now() - start;
// logger.info(`Successfully executed ProcessDualStackingDelegatorRewards. Execution time: ${executionTime} ms`);
// } catch (e) {
// logger.error(`Failed to execute ProcessDualStackingDelegatorRewards. Error: ${(e as Error).message}`, { stack: (e as Error).stack });
// isRunning = false;
// return;
// }

isRunning = false;
}
Expand Down

0 comments on commit 06592b0

Please sign in to comment.