From a4c4663011a4d9c8b274bb3edbd18fd3b7266f6e Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Wed, 12 Nov 2025 23:01:58 +0800 Subject: [PATCH] Merge pull request #298 * fix: replace unstable from_mins to stable from_secs --- src-tauri/yaak-http/src/lib.rs | 8 ++++---- src-tauri/yaak-http/src/manager.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src-tauri/yaak-http/src/lib.rs b/src-tauri/yaak-http/src/lib.rs index ce228285..3a2a1099 100644 --- a/src-tauri/yaak-http/src/lib.rs +++ b/src-tauri/yaak-http/src/lib.rs @@ -2,12 +2,12 @@ use crate::manager::HttpConnectionManager; use tauri::plugin::{Builder, TauriPlugin}; use tauri::{Manager, Runtime}; -pub mod tls; -pub mod path_placeholders; +pub mod client; +pub mod dns; pub mod error; pub mod manager; -pub mod dns; -pub mod client; +pub mod path_placeholders; +pub mod tls; pub fn init() -> TauriPlugin { Builder::new("yaak-http") diff --git a/src-tauri/yaak-http/src/manager.rs b/src-tauri/yaak-http/src/manager.rs index 0fcb40c0..f259ea9e 100644 --- a/src-tauri/yaak-http/src/manager.rs +++ b/src-tauri/yaak-http/src/manager.rs @@ -16,7 +16,7 @@ impl HttpConnectionManager { pub fn new() -> Self { Self { connections: Arc::new(RwLock::new(BTreeMap::new())), - ttl: Duration::from_mins(10), + ttl: Duration::from_secs(10 * 60), } }