set default for [consul-services] api

This commit is contained in:
Roberto Hidalgo 2023-05-20 21:25:57 -06:00 committed by networkException
parent 5978b84880
commit eceea96e59
Signed by: networkException
GPG key ID: E3877443AE684391

View file

@ -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,