Fix P1 Rust: remove all unused imports, variables, and fields across api/worker bins
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 3m48s
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 3m48s
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use sqlx::PgPool;
|
||||
use tracing::{info, warn};
|
||||
use tracing::warn;
|
||||
use uuid::Uuid;
|
||||
|
||||
async fn get_org_owner_email(pool: &PgPool, org_id: Uuid) -> Result<String, anyhow::Error> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use chrono::{DateTime, Datelike, NaiveTime, Utc, Weekday};
|
||||
use chrono::{DateTime, Datelike, NaiveTime, Utc};
|
||||
use sqlx::PgPool;
|
||||
use tracing::{info, warn};
|
||||
use uuid::Uuid;
|
||||
@@ -23,7 +23,7 @@ pub fn next_monday_9am(from: DateTime<Utc>) -> DateTime<Utc> {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct DigestData {
|
||||
pub org_id: Uuid,
|
||||
pub _org_id: Uuid,
|
||||
pub org_name: String,
|
||||
pub total_requests: i64,
|
||||
pub total_cost_original: f64,
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::mpsc;
|
||||
use tracing::{info, warn, error};
|
||||
use chrono::{Utc, Duration};
|
||||
use tracing::{info, error};
|
||||
use chrono::Utc;
|
||||
|
||||
use dd0c_route::{AppConfig, TelemetryEvent};
|
||||
use dd0c_route::AppConfig;
|
||||
|
||||
mod digest;
|
||||
mod anomaly;
|
||||
@@ -63,7 +62,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
// Spawn periodic tasks
|
||||
let ts1 = ts_pool.clone();
|
||||
let pg1 = pg_pool.clone();
|
||||
let config1 = config.clone();
|
||||
let _config1 = config.clone();
|
||||
|
||||
// Hourly: check for cost anomalies
|
||||
tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user