use & instead of as_slice()

This commit is contained in:
cy 2025-05-07 17:14:25 -04:00
parent 76e6c6c537
commit 68df59ad25

View file

@ -132,10 +132,7 @@ impl Push {
let inflight_permits = inflight_permits.clone(); let inflight_permits = inflight_permits.clone();
tokio::spawn(async move { tokio::spawn(async move {
let _permit = inflight_permits.acquire().await.unwrap(); let _permit = inflight_permits.acquire().await.unwrap();
if !path if !path.check_upstream_hit(&self.upstream_caches).await {
.check_upstream_hit(self.upstream_caches.as_slice())
.await
{
if path.check_if_already_exists(&self.s3).await { if path.check_if_already_exists(&self.s3).await {
debug!("skip {} (already exists)", path.absolute_path()); debug!("skip {} (already exists)", path.absolute_path());
self.already_exists_count.fetch_add(1, Ordering::Relaxed); self.already_exists_count.fetch_add(1, Ordering::Relaxed);