Skip to content

Commit 4e8eaa5

Browse files
committed
fix build?
1 parent 564d953 commit 4e8eaa5

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

teller-providers/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ strum = { workspace = true }
4444
thiserror = { workspace = true }
4545
hyper-util = { version = "0.1", features = ["client-legacy"] }
4646
rustls = { version = "0.23", features = ["ring"] }
47+
rustls-pki-types = "1"
4748
fs-err = "3"
4849
home = "0.5"
4950
hyper = "1.8.1"

teller-providers/src/providers/etcd.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ mod tests {
229229
#[cfg(not(target_arch = "aarch64"))]
230230
let image_name = "bitnami/etcd";
231231

232-
let image = Image::with_repository(image_name);
232+
let image = Image::with_repository(image_name)
233+
.pull_policy(dockertest::PullPolicy::Always);
233234
let mut etcd_container = Composition::with_image(image)
234235
.with_container_name("etcd-server")
235236
.with_env(env)

teller-providers/src/providers/hashicorp_consul.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ impl HashiCorpConsul {
7070
///
7171
/// This function will return an error if cannot create a provider
7272
pub fn new(name: &str, opts: Option<HashiCorpConsulOptions>) -> Result<Self> {
73+
rustls::crypto::ring::default_provider()
74+
.install_default()
75+
.ok();
7376
let opts = opts.unwrap_or_default();
7477

7578
let address = opts

0 commit comments

Comments
 (0)