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

feat: add exponential backoff for withdrawals queries #2133

Merged
merged 33 commits into from
Dec 12, 2024

Conversation

spsjvc
Copy link
Member

@spsjvc spsjvc commented Dec 10, 2024

Summary

Steps to test

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Dec 12, 2024 11:25am

@spsjvc spsjvc force-pushed the feat-exponential-backoff branch from 34ace79 to a68c4f9 Compare December 10, 2024 17:41
@spsjvc spsjvc changed the title feat: enable exponential backoff in providers feat: add exponential backoff for withdrawals queries Dec 10, 2024
@@ -22,7 +22,7 @@ export function fetchETHWithdrawalsFromEventLogs({
l2Provider: Provider
}) {
if (typeof receiver === 'undefined') {
return []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise the type would be never[]

Base automatically changed from perf-sequential-tx-history to master December 12, 2024 10:29
@spsjvc spsjvc marked this pull request as ready for review December 12, 2024 10:52
}

export function backOff<T>(request: () => Promise<T>): Promise<T> {
return _backOff(request, backoffOptions)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to turn on full jitter?
https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

i think we do?

@spsjvc spsjvc merged commit 6d55520 into master Dec 12, 2024
69 of 75 checks passed
@spsjvc spsjvc deleted the feat-exponential-backoff branch December 12, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants