Refactor worker modules: Added watchdog stop in BaseWorker, improved debug logging in PoliticsWorker, and removed unused credit_id in UserCharacterWorker.

This commit is contained in:
Torsten Schulz (local)
2025-11-21 23:25:59 +01:00
parent d0ec363f09
commit f9d869ee23
3 changed files with 18 additions and 7 deletions

View File

@@ -704,7 +704,6 @@ impl UserCharacterWorker {
fn map_row_to_credit(row: &crate::db::Row) -> Option<Credit> {
Some(Credit {
credit_id: row.get("credit_id")?.parse().ok()?,
amount: row.get("amount")?.parse().ok()?,
remaining_amount: row.get("remaining_amount")?.parse().ok()?,
interest_rate: row.get("interest_rate")?.parse().ok()?,
@@ -1143,7 +1142,6 @@ fn parse_opt_i32(row: &crate::db::Row, key: &str) -> Option<i32> {
#[derive(Debug, Clone)]
struct Credit {
credit_id: i32,
amount: f64,
remaining_amount: f64,
interest_rate: i32,