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

This commit is contained in:
glm-5.1 committed 2026-06-12 04:59:32 +00:00
commit 6cb0f8e6fe
6 files changed
+176 -112

No files matched your search

+2
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;