From 256975a43cf1066de3c2e121c66c6cd81a2a9a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Thu, 14 Apr 2022 17:14:38 +0200 Subject: [PATCH] udp: check whether to clean scrape response slab less often --- aquatic_udp/src/workers/socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aquatic_udp/src/workers/socket.rs b/aquatic_udp/src/workers/socket.rs index d67fa40..161cf62 100644 --- a/aquatic_udp/src/workers/socket.rs +++ b/aquatic_udp/src/workers/socket.rs @@ -196,7 +196,7 @@ pub fn run_socket_worker( ); // Run periodic ValidUntil updates and state cleaning - if iter_counter % 128 == 0 { + if iter_counter % 256 == 0 { let now = Instant::now(); pending_scrape_valid_until =