]> git.proxmox.com Git - proxmox-backup.git/commitdiff
proxy: Arc usage cleanup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 May 2021 13:53:56 +0000 (15:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 May 2021 14:28:08 +0000 (16:28 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/bin/proxmox-backup-proxy.rs

index b28ab75b88a56cb70cb7880160a300ae8dc15359..0b4b55868e793f9e77ea9317b50431b698ac85a5 100644 (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());