File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
apps/desktop/src-tauri/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -656,15 +656,16 @@ pub async fn singlepart_uploader(
656656 . map_err ( |err| format ! ( "singlepart_uploader/invalid_url: {err:?}" ) ) ?;
657657 let resp = reqwest:: Client :: builder ( )
658658 . retry (
659- reqwest:: retry:: for_host ( url. host ( ) . unwrap_or ( "<unknown>" ) . to_string ( ) ) . classify_fn (
660- |req_rep| {
659+ reqwest:: retry:: for_host ( url. host ( ) . unwrap_or ( "<unknown>" ) . to_string ( ) )
660+ . classify_fn ( |req_rep| {
661661 if req_rep. status ( ) . is_some_and ( |s| s. is_server_error ( ) ) {
662662 req_rep. retryable ( )
663663 } else {
664664 req_rep. success ( )
665665 }
666- } ,
667- ) ,
666+ } )
667+ . max_retries_per_request ( 5 )
668+ . max_extra_load ( 5.0 ) ,
668669 )
669670 . build ( )
670671 . map_err ( |err| format ! ( "singlepart_uploader/client: {err:?}" ) ) ?
You can’t perform that action at this time.
0 commit comments