Skip to content

Commit

Permalink
make etcd available
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed May 19, 2024
1 parent 1149598 commit 1f534a9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion teller-providers/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,18 @@ impl Registry {
.transpose()?,
)?)
}
ProviderKind::Etcd => todo!(),
#[cfg(feature = "etcd")]
ProviderKind::Etcd => Box::new(
crate::providers::etcd::Etcd::new(
k,
provider
.options
.clone()
.map(serde_json::from_value)
.transpose()?,
)
.await?,
),
};
loaded_providers.insert(k.clone(), provider);
}
Expand Down

0 comments on commit 1f534a9

Please sign in to comment.