mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-30 08:49:29 +00:00
set default for [consul-services] api
This commit is contained in:
@@ -146,6 +146,7 @@ pub enum ConsulDiscoveryAPI {
|
|||||||
#[derive(Deserialize, Debug, Clone)]
|
#[derive(Deserialize, Debug, Clone)]
|
||||||
pub struct ConsulDiscoveryConfig {
|
pub struct ConsulDiscoveryConfig {
|
||||||
/// The consul api to use when registering: either `catalog` (the default) or `agent`
|
/// The consul api to use when registering: either `catalog` (the default) or `agent`
|
||||||
|
#[serde(default)]
|
||||||
pub api: ConsulDiscoveryAPI,
|
pub api: ConsulDiscoveryAPI,
|
||||||
/// Consul http or https address to connect to to discover more peers
|
/// Consul http or https address to connect to to discover more peers
|
||||||
pub consul_http_addr: String,
|
pub consul_http_addr: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user