From 0f84b3f54eb832c4ebc2344da5ddc5daa86d4e52 Mon Sep 17 00:00:00 2001 From: houseme Date: Mon, 24 Nov 2025 23:41:27 +0800 Subject: [PATCH] fix --- rustfs/src/storage/ecfs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index 9279a72d8..96f2678de 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -132,6 +132,7 @@ use std::{ str::FromStr, sync::{Arc, LazyLock}, }; +use std::convert::Infallible; use time::{OffsetDateTime, format_description::well_known::Rfc3339}; use tokio::{io::AsyncRead, sync::mpsc}; use tokio_stream::wrappers::ReceiverStream; @@ -1645,7 +1646,7 @@ impl S3 for FS { debug!("Serving object from cache: {}", cache_key); // Build response from cached data - let body = Some(StreamingBlob::wrap(futures::stream::once(async move { + let body = Some(StreamingBlob::wrap::<_, Infallible>(futures::stream::once(async move { Ok(bytes::Bytes::from((*cached_data).clone())) })));