Skip to content

Commit caf3366

Browse files
committed
chore: add serde default to watch field
Signed-off-by: shuiyisong <[email protected]>
1 parent 207bb88 commit caf3366

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/grpc/src/channel_manager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,14 @@ pub fn maybe_watch_client_tls_config(
351351
})
352352
}
353353

354-
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
354+
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Default)]
355355
pub struct ClientTlsOption {
356356
/// Whether to enable TLS for client.
357357
pub enabled: bool,
358358
pub server_ca_cert_path: Option<String>,
359359
pub client_cert_path: Option<String>,
360360
pub client_key_path: Option<String>,
361+
#[serde(default)]
361362
pub watch: bool,
362363
}
363364

0 commit comments

Comments
 (0)