Skip to content

Commit

Permalink
fix: skip watch when tls disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Feb 22, 2024
1 parent a7e3aa6 commit 03527e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/servers/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ impl ReloadableTlsServerConfig {
}

pub fn watch_tls_config(tls_server_config: Arc<ReloadableTlsServerConfig>) -> Result<()> {
if tls_server_config.get_tls_option().mode == TlsMode::Disable {
return Ok(());
}

let tls_server_config_for_watcher = tls_server_config.clone();

let (tx, rx) = channel::<notify::Result<notify::Event>>();
Expand Down

0 comments on commit 03527e7

Please sign in to comment.