-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend)!: add tray proxies selector support (#417)
* feat(backend): provide a proxies endpoint test * chore: update deps * feat: first impl * chore: update deps * fix: confilict * fix: lint
- Loading branch information
1 parent
f7296db
commit 17f9319
Showing
21 changed files
with
756 additions
and
115 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
use backon::ExponentialBuilder; | ||
use once_cell::sync::Lazy; | ||
pub mod api; | ||
pub mod core; | ||
pub mod proxies; | ||
|
||
pub static CLASH_API_DEFAULT_BACKOFF_STRATEGY: Lazy<ExponentialBuilder> = Lazy::new(|| { | ||
ExponentialBuilder::default() | ||
.with_min_delay(std::time::Duration::from_millis(50)) | ||
.with_max_delay(std::time::Duration::from_secs(5)) | ||
.with_max_times(5) | ||
}); |
Oops, something went wrong.