Merge branch 'fix/fix/graceful-shutdown' into fix/acme-contact-and-challenge
This commit is contained in:
@@ -244,10 +244,12 @@ async fn test_rate_limit_eviction_task() {
|
||||
|
||||
limiter.check_and_consume(std::net::IpAddr::from([192, 168, 1, 1]));
|
||||
|
||||
let shutdown = Arc::new(reverse_proxy::shutdown::GracefulShutdown::new(30));
|
||||
let handle = reverse_proxy::rate_limit::start_eviction_task(
|
||||
limiter.clone(),
|
||||
Duration::from_millis(50),
|
||||
Duration::from_millis(100),
|
||||
shutdown.subscribe(),
|
||||
);
|
||||
|
||||
tokio::time::sleep(Duration::from_millis(200)).await;
|
||||
|
||||
Reference in New Issue
Block a user