mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 09:40:32 +00:00
fix
This commit is contained in:
@@ -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()))
|
||||
})));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user