This commit is contained in:
Lukas Kreussel
2025-12-20 15:59:33 +01:00
parent 7842bb8088
commit ba80453a39
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ async fn proxy_request(client: &Client, url: url::Url) -> Result<Response, Statu
// Create a stream that yields chunks as they are received from the upstream server
let stream = resp
.bytes_stream()
.map(|result| result.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e)));
.map(|result| result.map_err(std::io::Error::other));
let body = Body::from_stream(stream);

View File

@@ -136,7 +136,7 @@ impl AppState {
pub async fn get_media_streaming_mode(&self) -> MediaStreamingMode {
let config = self.config.read().await;
config.media_streaming_mode.clone()
config.media_streaming_mode
}
}