Skip to content

Commit

Permalink
Merge pull request #340 from metaDAOproject/fix/overload-2
Browse files Browse the repository at this point in the history
fix: increase time betweeen back and forward fill
  • Loading branch information
R-K-H authored Dec 16, 2024
2 parents 639ca24 + 5aeb851 commit 592896b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/indexer/src/v3_indexer/transaction/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class TransactionWatcher {
// TODO: add websocket for realtime updates (might be lossy, but would allow us to increase poll time meaning less rpc costs)
this.pollerIntervalId = setInterval(async () => {
await this.handleBackfillFromLatest();
}, 10000);
}, 60 * 1000);
return Ok(`successfully started watcher for ${this.account.toBase58()}`);
}

Expand Down Expand Up @@ -614,6 +614,6 @@ export async function startTransactionWatchers() {
if (!updatingWatchers) {
getWatchers();
}
}, 5000);
}, 5 * 1000);
getWatchers();
}
2 changes: 1 addition & 1 deletion packages/indexer/src/v4_indexer/filler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const frontfill = async () => {
setInterval(async () => {
const newSignatures = await insertNewSignatures(programId);
console.log(`inserted up to ${newSignatures.length} new signatures for ${programId.toString()}`);
}, 30000); //every 30s
}, 60 * 1000); //every 30s
} catch (error) {
logger.errorWithChatBotAlert([
error instanceof Error ?
Expand Down

0 comments on commit 592896b

Please sign in to comment.