mirror of
https://github.com/telemt/telemt.git
synced 2026-11-01 13:21:58 +03:00
Rustfmt
This commit is contained in:
@@ -78,9 +78,7 @@ pub(crate) async fn clear_synlimit_rules_all_backends() -> Result<bool, String>
|
||||
|
||||
async fn clear_synlimit_rules_for_namespace(namespace: &SynLimitNamespace) -> Result<bool, String> {
|
||||
if !has_firewall_privileges() {
|
||||
return Err(
|
||||
"SYN limiter cleanup requires root or CAP_NET_ADMIN privileges".to_string(),
|
||||
);
|
||||
return Err("SYN limiter cleanup requires root or CAP_NET_ADMIN privileges".to_string());
|
||||
}
|
||||
|
||||
let mut errors = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user