diff options
author | Nicolas Patry <patry.nicolas@protonmail.com> | 2023-06-28 11:40:41 +0200 |
---|---|---|
committer | Nicolas Patry <patry.nicolas@protonmail.com> | 2023-06-28 11:40:41 +0200 |
commit | 9c86e4afa8c90ceb342f1062d143a9fe68c56d1d (patch) | |
tree | 8a58f47a37b5f82894e3b0d5a0d718f25368ddba /candle-hub/src/api.rs | |
parent | d0ff3b2d130c6474676a19000c81396fc8e6a2bf (diff) | |
download | candle-9c86e4afa8c90ceb342f1062d143a9fe68c56d1d.tar.gz candle-9c86e4afa8c90ceb342f1062d143a9fe68c56d1d.tar.bz2 candle-9c86e4afa8c90ceb342f1062d143a9fe68c56d1d.zip |
Fix flaky test ?
Diffstat (limited to 'candle-hub/src/api.rs')
-rw-r--r-- | candle-hub/src/api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-hub/src/api.rs b/candle-hub/src/api.rs index 30af19c6..9ea014ec 100644 --- a/candle-hub/src/api.rs +++ b/candle-hub/src/api.rs @@ -522,7 +522,7 @@ impl Api { let tmp_filename = self .download_tempfile(&url, metadata.size, progressbar) .await?; - std::fs::copy(tmp_filename, &blob_path)?; + tokio::fs::copy(tmp_filename, &blob_path).await?; let mut pointer_path = self.cache.pointer_path(repo, &metadata.commit_hash); pointer_path.push(filename); |