diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-29 22:16:15 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-29 22:16:15 +0100 |
| commit | bc0de9955c375cf27d52c9934403964205afc182 (patch) | |
| tree | 42799fb426fb0ec164f44c92a63525003c582f35 /src/bin/server/main.rs | |
| parent | initial connection timeout set to 10s (diff) | |
| download | zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.tar.gz zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.zip | |
formatting
Diffstat (limited to 'src/bin/server/main.rs')
| -rw-r--r-- | src/bin/server/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/server/main.rs b/src/bin/server/main.rs index 85e3134..f42574d 100644 --- a/src/bin/server/main.rs +++ b/src/bin/server/main.rs | |||
| @@ -40,9 +40,9 @@ fn main() { | |||
| 40 | let db_path = std::env::var("SERVER_DB").unwrap_or_else(|_| "server.db".to_string()); | 40 | let db_path = std::env::var("SERVER_DB").unwrap_or_else(|_| "server.db".to_string()); |
| 41 | match zagan_bet::server::core::recover_orphaned_reservations(&db_path) { | 41 | match zagan_bet::server::core::recover_orphaned_reservations(&db_path) { |
| 42 | Ok(0) => {} | 42 | Ok(0) => {} |
| 43 | Ok(count) => println!( | 43 | Ok(count) => { |
| 44 | "Settled {count} orphaned reservation(s) as abandoned after a restart" | 44 | println!("Settled {count} orphaned reservation(s) as abandoned after a restart") |
| 45 | ), | 45 | } |
| 46 | Err(error) => { | 46 | Err(error) => { |
| 47 | eprintln!("Failed to settle orphaned reservations in {db_path}: {error}"); | 47 | eprintln!("Failed to settle orphaned reservations in {db_path}: {error}"); |
| 48 | std::process::exit(1); | 48 | std::process::exit(1); |
