From 4b3a024b7a3e701bb65a451dac1439e70f363cae Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Fri, 15 Nov 2024 17:05:41 +0900 Subject: [PATCH] manual fix --- src/chain/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chain/index.ts b/src/chain/index.ts index ce6e133..089f9f1 100644 --- a/src/chain/index.ts +++ b/src/chain/index.ts @@ -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 @@ -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) } }