Merge pull request #298

* fix: replace unstable from_mins to stable from_secs
This commit is contained in:
Zhizhen He
2025-11-12 23:01:58 +08:00
committed by GitHub
parent 5745a96106
commit a4c4663011
2 changed files with 5 additions and 5 deletions

View File

@@ -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<R: Runtime>() -> TauriPlugin<R> {
Builder::new("yaak-http")

View File

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