-
Notifications
You must be signed in to change notification settings - Fork 203
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
34ace79
to
a68c4f9
Compare
@@ -22,7 +22,7 @@ export function fetchETHWithdrawalsFromEventLogs({ | |||
l2Provider: Provider | |||
}) { | |||
if (typeof receiver === 'undefined') { | |||
return [] |
There was a problem hiding this comment.
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[]
} | ||
|
||
export function backOff<T>(request: () => Promise<T>): Promise<T> { | ||
return _backOff(request, backoffOptions) |
There was a problem hiding this comment.
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?
Summary
Steps to test