aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorRoberto Hidalgo <un@rob.mx>2023-05-20 21:25:57 -0600
committerRoberto Hidalgo <un@rob.mx>2023-05-22 08:57:15 -0600
commitef8a7add0865b593836736af64b8577c5375d531 (patch)
tree1fcffa4750d832f16ca7fb93cfae5bb89f7f32a2 /src/util
parent2d46d24d06849584e751ffcf6842b4d3016b6f77 (diff)
downloadgarage-ef8a7add0865b593836736af64b8577c5375d531.tar.gz
garage-ef8a7add0865b593836736af64b8577c5375d531.zip
set default for [consul-services] api
Diffstat (limited to 'src/util')
-rw-r--r--src/util/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index 647c2659..1da95b2f 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -146,6 +146,7 @@ pub enum ConsulDiscoveryAPI {
#[derive(Deserialize, Debug, Clone)]
pub struct ConsulDiscoveryConfig {
/// The consul api to use when registering: either `catalog` (the default) or `agent`
+ #[serde(default)]
pub api: ConsulDiscoveryAPI,
/// Consul http or https address to connect to to discover more peers
pub consul_http_addr: String,