mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-13 15:35:13 +00:00
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:
@@ -3,12 +3,13 @@ mod charging;
|
||||
mod monitoring;
|
||||
mod errors;
|
||||
mod models;
|
||||
mod routes;
|
||||
|
||||
use anyhow::Result;
|
||||
use std::sync::Arc;
|
||||
use tracing::info;
|
||||
|
||||
use api::create_router;
|
||||
use routes::create_router;
|
||||
use charging::{ChargingEngine, RatingPlansRepo};
|
||||
|
||||
#[tokio::main]
|
||||
@@ -43,7 +44,7 @@ async fn main() -> Result<()> {
|
||||
info!("Connected to Redis successfully");
|
||||
|
||||
// Create application state
|
||||
let state = api::AppState {
|
||||
let state = crate::models::AppState {
|
||||
charging_engine,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user