Skip to content

Commit

Permalink
watcher: add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Nov 18, 2024
1 parent 1a9b571 commit d145fac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion watcher/src/watchers/NearArchiveWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -187,6 +187,7 @@ export class NearArchiveWatcher extends Watcher {
break;
}
}
await sleep(10_000);
}
return txs.reverse();
}
Expand Down

0 comments on commit d145fac

Please sign in to comment.