Fix config::test_reconnect_serde
@@ -51,7 +51,7 @@ pub enum Reconnect {
growth_rate: f64,
//TODO: randomized: bool
/// maximum number of retries to execute
- #[serde(default = "default_max_retries")]
+ #[serde(default = "Default::default")]
max_retries: Option<u64>,
},
}
@@ -60,10 +60,6 @@ fn default_growth_rate() -> f64 {
1.2
}
-fn default_max_retries() -> Option<u64> {
- Some(3)
-}
-
impl Default for Reconnect {
fn default() -> Self {
Self::None
