Merge branch 'fix/fix/graceful-shutdown' into fix/acme-contact-and-challenge

This commit is contained in:
2026-06-12 04:59:32 +00:00
6 changed files with 176 additions and 112 deletions

View File

@@ -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;