proxy: Arc usage cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-05-11 15:53:56 +02:00 committed by Thomas Lamprecht
parent cc269b9ff9
commit b4931192c3
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ async fn accept_connection(
continue;
}
let accept_counter = accept_counter.clone();
let accept_counter = Arc::clone(&accept_counter);
tokio::spawn(async move {
let accept_future = tokio::time::timeout(
Duration::new(10, 0), stream.as_mut().accept());