Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Mar 27, 2024
1 parent cdf760c commit 3c03ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tabby-download/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async fn download_model_impl(
}

if !model_info.segmented_urls.is_empty() {
return download_split_model(&model_info, &model_path).await;
return download_split_model(model_info, &model_path).await;
}

Check warning on line 47 in crates/tabby-download/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crates/tabby-download/src/lib.rs#L44-L47

Added lines #L44 - L47 were not covered by tests
let registry = std::env::var("TABBY_DOWNLOAD_HOST").unwrap_or("huggingface.co".to_owned());
Expand Down Expand Up @@ -72,7 +72,7 @@ async fn download_split_model(model_info: &ModelInfo, model_path: &Path) -> Resu
let ext = format!(
"{}.{}",
model_path.extension().unwrap_or_default().to_string_lossy(),
index.to_string()
index
);
let path = model_path.with_extension(ext);
let strategy = ExponentialBackoff::from_millis(100).map(jitter).take(2);
Expand Down

0 comments on commit 3c03ed2

Please sign in to comment.