mirror of
https://github.com/katanemo/plano.git
synced 2026-05-10 16:22:42 +02:00
make ratelimit section optional (#168)
This commit is contained in:
parent
f9e3a052fc
commit
6b70768170
4 changed files with 14 additions and 20 deletions
|
|
@ -404,6 +404,14 @@ mod test {
|
|||
use std::num::NonZero;
|
||||
use std::thread;
|
||||
|
||||
#[test]
|
||||
fn make_ratelimits_optional() {
|
||||
let ratelimits_config = Vec::new();
|
||||
|
||||
// Initialize in the main thread.
|
||||
ratelimits(Some(ratelimits_config));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn different_threads_have_same_ratelimit_data_structure() {
|
||||
let ratelimits_config = Some(vec![Ratelimit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue