mirror of
https://github.com/telemt/telemt.git
synced 2026-06-19 02:00:08 +07:00
Update middle_relay.rs
This commit is contained in:
@@ -535,6 +535,7 @@ fn quota_exceeded_for_user(stats: &Stats, user: &str, quota_limit: Option<u64>)
|
|||||||
quota_limit.is_some_and(|quota| stats.get_user_total_octets(user) >= quota)
|
quota_limit.is_some_and(|quota| stats.get_user_total_octets(user) >= quota)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(not(test), allow(dead_code))]
|
||||||
fn quota_would_be_exceeded_for_user(
|
fn quota_would_be_exceeded_for_user(
|
||||||
stats: &Stats,
|
stats: &Stats,
|
||||||
user: &str,
|
user: &str,
|
||||||
|
|||||||
Reference in New Issue
Block a user