Skip to content

Commit

Permalink
fix: remove unrequired null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Oct 8, 2023
1 parent d2fd994 commit b38ba90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/chainContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class ChainContext {
// sleep for 5 seconds
await asyncSleep(WATCHDOG_FREQUENCY);
const now = Math.floor(new Date().getTime() / 1000);
const timeElapsed = now - (lastBlockReceived?.timestamp ?? 0);
const timeElapsed = now - lastBlockReceived.timestamp;

log.debug(`Time since last block processed: ${timeElapsed}ms`);

Expand Down

0 comments on commit b38ba90

Please sign in to comment.