From f798bb0fce654bbe1b0476af8cceeca8d0439544 Mon Sep 17 00:00:00 2001 From: houseme Date: Mon, 9 Jun 2025 10:18:43 +0800 Subject: [PATCH] fix --- Cargo.toml | 1 - crates/config/src/notify/webhook.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fdffe73b..3bc56591 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,7 +80,6 @@ const-str = { version = "0.6.2", features = ["std", "proc"] } crc32fast = "1.4.2" datafusion = "46.0.1" derive_builder = "0.20.2" -dotenvy = "0.15.7" dioxus = { version = "0.6.3", features = ["router"] } dirs = "6.0.0" dotenvy = "0.15.7" diff --git a/crates/config/src/notify/webhook.rs b/crates/config/src/notify/webhook.rs index eb664093..5d29dbfc 100644 --- a/crates/config/src/notify/webhook.rs +++ b/crates/config/src/notify/webhook.rs @@ -7,7 +7,6 @@ pub struct WebhookArgs { pub endpoint: String, pub auth_token: String, #[serde(skip)] - pub transport: Option<()>, // Placeholder for *http.Transport pub queue_dir: String, pub queue_limit: u64, pub client_cert: String, @@ -21,7 +20,6 @@ impl WebhookArgs { enable: false, endpoint: "".to_string(), auth_token: "".to_string(), - transport: None, queue_dir: "".to_string(), queue_limit: 0, client_cert: "".to_string(), @@ -62,7 +60,6 @@ mod tests { let args = WebhookArgs::new(); assert_eq!(args.endpoint, ""); assert_eq!(args.auth_token, ""); - assert!(args.transport.is_none()); assert_eq!(args.queue_dir, ""); assert_eq!(args.queue_limit, 0); assert_eq!(args.client_cert, "");