mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
udp: network: check less often if periodic tasks need to be done
This commit is contained in:
parent
a530dc2860
commit
029193b512
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ pub fn run_socket_worker(
|
||||||
);
|
);
|
||||||
|
|
||||||
// Run periodic ValidUntil updates and state cleaning
|
// Run periodic ValidUntil updates and state cleaning
|
||||||
if iter_counter % 32 == 0 {
|
if iter_counter % 128 == 0 {
|
||||||
let now = Instant::now();
|
let now = Instant::now();
|
||||||
|
|
||||||
connection_valid_until =
|
connection_valid_until =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue