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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user