mirror of
https://github.com/telemt/telemt.git
synced 2026-11-22 23:36:36 +03:00
Rustfmt
This commit is contained in:
@@ -455,6 +455,7 @@ const ACCESS_CONFIG_KEYS: &[&str] = &[
|
||||
"user_max_tcp_conns_global_each",
|
||||
"user_expirations",
|
||||
"user_data_quota",
|
||||
"user_quota_periods",
|
||||
"user_rate_limits",
|
||||
"cidr_rate_limits",
|
||||
"user_max_unique_ips",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use super::*;
|
||||
|
||||
pub(super) fn validate(config: &mut ProxyConfig) -> Result<()> {
|
||||
config.access.validate_quota_periods()?;
|
||||
if config.general.me_writer_cmd_channel_capacity == 0 {
|
||||
return Err(ProxyError::Config(
|
||||
"general.me_writer_cmd_channel_capacity must be > 0".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user