From 68df59ad25563b812829651e90ae1865bbeb42b0 Mon Sep 17 00:00:00 2001 From: cy Date: Wed, 7 May 2025 17:14:25 -0400 Subject: [PATCH] use & instead of as_slice() --- src/push.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/push.rs b/src/push.rs index bf25ea1..7c23e39 100644 --- a/src/push.rs +++ b/src/push.rs @@ -132,10 +132,7 @@ impl Push { let inflight_permits = inflight_permits.clone(); tokio::spawn(async move { let _permit = inflight_permits.acquire().await.unwrap(); - if !path - .check_upstream_hit(self.upstream_caches.as_slice()) - .await - { + if !path.check_upstream_hit(&self.upstream_caches).await { if path.check_if_already_exists(&self.s3).await { debug!("skip {} (already exists)", path.absolute_path()); self.already_exists_count.fetch_add(1, Ordering::Relaxed);