-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recently the oneinch solver pod crashes during initialization more frequently. This is due to rate limits during `OneInch::new()`. This PR makes it so that we retry the initialization 10s because this is usually just a temporary error. While I was at it I unified the semantics of all `Solver::new()` implementations to panic if a non recoverable error happens which makes the code slightly nicer to read. (Only paraswap needed this change)
- Loading branch information
1 parent
7d5b158
commit 48d5202
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters