Skip to content

Commit

Permalink
update backon
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Sep 9, 2024
1 parent f2fdb17 commit 929c3a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion daedalus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ reqwest = { version = "0", default-features = false, features = [
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0", features = ["serde"] }
backon = "0"
backon = "1"
bytes = "1"
thiserror = "1"
tokio = { version = "1", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion daedalus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ pub async fn download_file(
}
})
.retry(
&ExponentialBuilder::default()
ExponentialBuilder::default()
.with_max_times(10)
.with_max_delay(Duration::from_secs(1800)),
)
Expand Down
2 changes: 1 addition & 1 deletion daedalus_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ reqwest = { version = "0.11.13", default-features = false, features = [
] }
zip = "0.6.3"
semver = "1.0"
backon = "0.4.3"
backon = "1.2.0"
serde-xml-rs = "0.6.0"
chrono = { version = "0.4", features = ["serde"] }
bytes = "1.3.0"
Expand Down
7 changes: 6 additions & 1 deletion daedalus_client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pub async fn upload_file_to_bucket(
}
})
.retry(
&ExponentialBuilder::default()
ExponentialBuilder::default()
.with_max_times(10)
.with_max_delay(Duration::from_secs(1800)),
)
Expand Down Expand Up @@ -318,6 +318,11 @@ pub async fn upload_static_files(
entry.path().display()
)
})?;

if upload_path.ends_with(".DS_Store") {
continue;
}

info!(
"uploading {} to cdn at path {}",
entry.path().display(),
Expand Down

0 comments on commit 929c3a8

Please sign in to comment.