Skip to content

Commit 901d765

Browse files
committed
fix(download): make download size err print debug
1 parent ed740cf commit 901d765

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/types/models/mod_entity.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1438,10 +1438,8 @@ pub async fn download_geode_file(url: &str, limit_mb: u32) -> Result<Cursor<Byte
14381438
}
14391439

14401440
async fn get_download_size(url: &str) -> Result<u64, ApiError> {
1441-
let client = Client::new();
1442-
1443-
let res = client.head(url).send().await.map_err(|err| {
1444-
log::error!("Failed to send HEAD request for .geode filesize: {}", err);
1441+
let res = Client::new().head(url).send().await.map_err(|err| {
1442+
log::error!("Failed to send HEAD request for .geode filesize: {:?}", err);
14451443
ApiError::BadRequest("Failed to query filesize for given URL".into())
14461444
})?;
14471445

0 commit comments

Comments
 (0)