mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2025-03-28 01:23:16 -07:00
+ use custom `Notify` + use different version of async sleep (tokio vs gloo-timers) + switch futures utils from `tokio` to `futures`
18 lines
378 B
Rust
18 lines
378 B
Rust
//! Module containing rate limiting and requesting types.
|
|
|
|
mod rate_limit;
|
|
pub use rate_limit::*;
|
|
|
|
mod rate_limit_type;
|
|
pub use rate_limit_type::*; // Hack for token_bucket_test.rs.
|
|
|
|
use crate::time::Instant;
|
|
mod token_bucket;
|
|
pub use token_bucket::*;
|
|
|
|
mod regional_requester;
|
|
pub use regional_requester::*;
|
|
|
|
#[cfg(test)]
|
|
#[path = "token_bucket.test.rs"]
|
|
mod token_bucket_test;
|