Skip to content

Commit 13c71cf

Browse files
stttttrrrriiiinnnnggg
1 parent 30d4726 commit 13c71cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/desktop/src-tauri/src/upload.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ pub fn from_pending_file_to_chunks(
574574
}
575575
}
576576

577-
fn retryable_client(host: &str) -> reqwest::ClientBuilder {
577+
fn retryable_client(host: String) -> reqwest::ClientBuilder {
578578
reqwest::Client::builder().retry(
579579
reqwest::retry::for_host(host)
580580
.classify_fn(|req_rep| {
@@ -619,7 +619,7 @@ fn multipart_uploader(
619619
.await?;
620620

621621
let url = Uri::from_str(&presigned_url).map_err(|err| format!("uploader/part/{part_number}/invalid_url: {err:?}"))?;
622-
let resp = retryable_client(&url.host().unwrap_or("<unknown>").to_string())
622+
let resp = retryable_client(url.host().unwrap_or("<unknown>").to_string())
623623
.build()
624624
.map_err(|err| format!("uploader/part/{part_number}/client: {err:?}"))?
625625
.put(&presigned_url)
@@ -659,7 +659,7 @@ pub async fn singlepart_uploader(
659659

660660
let url = Uri::from_str(&presigned_url)
661661
.map_err(|err| format!("singlepart_uploader/invalid_url: {err:?}"))?;
662-
let resp = retryable_client(&url.host().unwrap_or("<unknown>").to_string())
662+
let resp = retryable_client(url.host().unwrap_or("<unknown>").to_string())
663663
.build()
664664
.map_err(|err| format!("singlepart_uploader/client: {err:?}"))?
665665
.put(&presigned_url)

0 commit comments

Comments
 (0)