mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-10-11 09:04:27 +08:00
reorganize
This commit is contained in:
+1
-5
@@ -35,12 +35,8 @@ pub async fn run_server(in_thread: bool) -> std::io::Result<()> {
|
|||||||
|
|
||||||
if args.purge {
|
if args.purge {
|
||||||
println!("Purging accounts...");
|
println!("Purging accounts...");
|
||||||
// Cabinets first, so the accounts they take with them are gone before
|
|
||||||
// purge_accounts runs its VACUUM over the same database
|
|
||||||
let machines = crate::router::arcade::purge_machines();
|
let machines = crate::router::arcade::purge_machines();
|
||||||
if machines > 0 {
|
println!("Purged {} arcade machines", machines);
|
||||||
println!("Purged {} arcade machine(s)", machines);
|
|
||||||
}
|
|
||||||
let ct = crate::router::userdata::purge_accounts();
|
let ct = crate::router::userdata::purge_accounts();
|
||||||
println!("Purged {} accounts", ct);
|
println!("Purged {} accounts", ct);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user