Skip to content

Commit

Permalink
manual fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Nov 15, 2024
1 parent 8574390 commit 4b3a024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/chain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ export class Chain {
private async latestHeightWorker() {
// to prevent rerun
if (
(this.workers['latest_height_worekr'] ?? 0) >
(this.workers['latest_height_worker'] ?? 0) >
new Date().valueOf() - 5 * 60 * 1000
) {
return
}

this.debug('Activate latest height worekr')
this.debug('Activate latest height worker')

// TODO add websocket options
const MAX_RETRY = 10
Expand Down Expand Up @@ -308,7 +308,7 @@ export class Chain {
)
}
} finally {
this.workers['latest_height_worekr'] = new Date().valueOf()
this.workers['latest_height_worker'] = new Date().valueOf()
await delay(1000)
}
}
Expand Down

0 comments on commit 4b3a024

Please sign in to comment.