mirror of
https://github.com/telemt/telemt.git
synced 2026-11-22 15:26:37 +03:00
Rustfmt
This commit is contained in:
@@ -200,7 +200,13 @@ pub(super) async fn handle(
|
||||
("GET", "/v1/stats/users/quota") => {
|
||||
let revision = current_revision(&shared.config_path).await?;
|
||||
let disk_cfg = load_config_from_disk(&shared.config_path).await?;
|
||||
let data = build_user_quota_list(&disk_cfg, shared.stats.as_ref());
|
||||
let _quota_guard = shared.quota_state.lock().await;
|
||||
let mut data = build_user_quota_list(&disk_cfg, shared.stats.as_ref());
|
||||
for entry in &mut data.users {
|
||||
entry.schedule = shared
|
||||
.quota_state
|
||||
.schedule_status(&entry.username, entry.quota_period);
|
||||
}
|
||||
Ok(success_response(StatusCode::OK, data, revision))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user