Skip to content

Commit d145fac

Browse files
committed
watcher: add delay
1 parent 1a9b571 commit d145fac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

watcher/src/watchers/NearArchiveWatcher.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
getTimestampByBlock,
1212
} from '../utils/near';
1313
import { Watcher } from './Watcher';
14-
import { assertEnvironmentVariable } from '@wormhole-foundation/wormhole-monitor-common';
14+
import { assertEnvironmentVariable, sleep } from '@wormhole-foundation/wormhole-monitor-common';
1515
import { Network, contracts } from '@wormhole-foundation/sdk-base';
1616
import axios from 'axios';
1717
import { AXIOS_CONFIG_JSON } from '../consts';
@@ -187,6 +187,7 @@ export class NearArchiveWatcher extends Watcher {
187187
break;
188188
}
189189
}
190+
await sleep(10_000);
190191
}
191192
return txs.reverse();
192193
}

0 commit comments

Comments
 (0)