chore(meta): fix ConfigViaEnf: it should be metasrv_grpc_api_advertise_host
@@ -264,7 +264,7 @@ pub struct ConfigViaEnv {
pub admin_tls_server_cert: String,
pub admin_tls_server_key: String,
pub metasrv_grpc_api_address: String,
- pub metasrv_grpc_api_advertise_address: Option<String>,
+ pub metasrv_grpc_api_advertise_host: Option<String>,
pub grpc_tls_server_cert: String,
pub grpc_tls_server_key: String,
@@ -308,7 +308,7 @@ impl From<Config> for ConfigViaEnv {
admin_tls_server_cert: cfg.admin_tls_server_cert,
admin_tls_server_key: cfg.admin_tls_server_key,
metasrv_grpc_api_address: cfg.grpc_api_address,
- metasrv_grpc_api_advertise_address: cfg.grpc_api_advertise_host,
+ metasrv_grpc_api_advertise_host: cfg.grpc_api_advertise_host,
grpc_tls_server_cert: cfg.grpc_tls_server_cert,
grpc_tls_server_key: cfg.grpc_tls_server_key,
config_id: cfg.raft_config.config_id,
@@ -386,7 +386,7 @@ impl Into<Config> for ConfigViaEnv {
admin_tls_server_cert: self.admin_tls_server_cert,
admin_tls_server_key: self.admin_tls_server_key,
grpc_api_address: self.metasrv_grpc_api_address,
- grpc_api_advertise_host: self.metasrv_grpc_api_advertise_address,
+ grpc_api_advertise_host: self.metasrv_grpc_api_advertise_host,
grpc_tls_server_cert: self.grpc_tls_server_cert,
grpc_tls_server_key: self.grpc_tls_server_key,
raft_config,
