diff options
Diffstat (limited to 'src/voice')
| -rw-r--r-- | src/voice/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/voice/mod.rs b/src/voice/mod.rs index bbb73a0..a6baa64 100644 --- a/src/voice/mod.rs +++ b/src/voice/mod.rs | |||
| @@ -275,6 +275,7 @@ pub async fn ytdlp_download(url: &str) -> Result<Vec<u8>> { | |||
| 275 | pub async fn download_url(client: &reqwest::Client, url: &str) -> Result<Vec<u8>> { | 275 | pub async fn download_url(client: &reqwest::Client, url: &str) -> Result<Vec<u8>> { |
| 276 | let resp = client | 276 | let resp = client |
| 277 | .get(url) | 277 | .get(url) |
| 278 | .timeout(Duration::from_secs(300)) | ||
| 278 | .send() | 279 | .send() |
| 279 | .await | 280 | .await |
| 280 | .map_err(|e| Error::Custom(format!("HTTP GET failed for {}: {e}", redact_url(url))))?; | 281 | .map_err(|e| Error::Custom(format!("HTTP GET failed for {}: {e}", redact_url(url))))?; |
