From d145fac6023144a3ef52e0bcf5902133d80a6849 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Mon, 18 Nov 2024 09:03:08 -0600 Subject: [PATCH] watcher: add delay --- watcher/src/watchers/NearArchiveWatcher.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/watcher/src/watchers/NearArchiveWatcher.ts b/watcher/src/watchers/NearArchiveWatcher.ts index 1caf770d..cef3c086 100644 --- a/watcher/src/watchers/NearArchiveWatcher.ts +++ b/watcher/src/watchers/NearArchiveWatcher.ts @@ -11,7 +11,7 @@ import { getTimestampByBlock, } from '../utils/near'; import { Watcher } from './Watcher'; -import { assertEnvironmentVariable } from '@wormhole-foundation/wormhole-monitor-common'; +import { assertEnvironmentVariable, sleep } from '@wormhole-foundation/wormhole-monitor-common'; import { Network, contracts } from '@wormhole-foundation/sdk-base'; import axios from 'axios'; import { AXIOS_CONFIG_JSON } from '../consts'; @@ -187,6 +187,7 @@ export class NearArchiveWatcher extends Watcher { break; } } + await sleep(10_000); } return txs.reverse(); }