Skip to content

Commit 207bb88

Browse files
committed
chore: minor comment update
Signed-off-by: shuiyisong <[email protected]>
1 parent 69e7d8b commit 207bb88

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/common/grpc/src/channel_manager.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ fn load_tls_config(tls_option: Option<&ClientTlsOption>) -> Result<Option<Client
296296
}
297297

298298
impl TlsConfigLoader<ClientTlsConfig> for ClientTlsOption {
299-
type Config = ClientTlsConfig;
300299
type Error = crate::error::Error;
301300

302301
fn load(&self) -> Result<Option<ClientTlsConfig>> {

src/common/grpc/src/reloadable_tls.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use crate::error::{FileWatchSnafu, Result};
2525

2626
/// A trait for loading TLS configuration from an option type
2727
pub trait TlsConfigLoader<T> {
28-
type Config;
2928
type Error;
3029

3130
/// Load the TLS configuration
@@ -100,6 +99,11 @@ where
10099
///
101100
/// This is a generic function that works with any ReloadableTlsConfig.
102101
/// When changes are detected, it calls the provided callback after reloading.
102+
///
103+
/// T: the original TLS config
104+
/// O: the compiled TLS option
105+
/// F: the hook function to be called after reloading
106+
/// E: the error type for the loading operation
103107
pub fn maybe_watch_tls_config<T, O, F, E>(
104108
tls_config: Arc<ReloadableTlsConfig<T, O>>,
105109
on_reload: F,

src/servers/src/tls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ impl TlsOption {
141141
}
142142

143143
impl TlsConfigLoader<Arc<ServerConfig>> for TlsOption {
144-
type Config = Arc<ServerConfig>;
145144
type Error = crate::error::Error;
146145

147146
fn load(&self) -> Result<Option<Arc<ServerConfig>>> {

0 commit comments

Comments
 (0)