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), } }