Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: increase time betweeen back and forward fill #340

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading