feat: Refactor charging engine modules with dead_code annotations and error handling improvements

- Add AsyncCommands import and dead_code attributes to get_balance/add_credit/start/stop/uptime/rating plan methods
- Remove validate_imsi/validate_session_id calls from get_subscriber_account/record_usage_event
- Update logging in get_subscriber_account and simplify record_usage_event log message
- Remove usage event expiration logic from record_usage_event
- Reorder engine methods and add dead_code attributes
This commit is contained in:
nutcas3
2026-04-25 02:10:24 +03:00
parent 99943c769e
commit 8b86e55226
10 changed files with 91 additions and 150 deletions
+1 -4
View File
@@ -2,7 +2,4 @@ pub mod types;
pub mod helpers;
pub use types::ChargingError;
pub use helpers::{
log_error, validate_amount, validate_bytes, validate_imsi, validate_ip,
validate_session_id, ChargingResult, ErrorContext,
};
pub use helpers::{ChargingResult, ErrorContext, validate_ip, validate_bytes, validate_amount, validate_session_id, log_error};