mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
Merge pull request #298
* fix: replace unstable from_mins to stable from_secs
This commit is contained in:
@@ -2,12 +2,12 @@ use crate::manager::HttpConnectionManager;
|
|||||||
use tauri::plugin::{Builder, TauriPlugin};
|
use tauri::plugin::{Builder, TauriPlugin};
|
||||||
use tauri::{Manager, Runtime};
|
use tauri::{Manager, Runtime};
|
||||||
|
|
||||||
pub mod tls;
|
pub mod client;
|
||||||
pub mod path_placeholders;
|
pub mod dns;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod manager;
|
pub mod manager;
|
||||||
pub mod dns;
|
pub mod path_placeholders;
|
||||||
pub mod client;
|
pub mod tls;
|
||||||
|
|
||||||
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||||
Builder::new("yaak-http")
|
Builder::new("yaak-http")
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ impl HttpConnectionManager {
|
|||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
connections: Arc::new(RwLock::new(BTreeMap::new())),
|
connections: Arc::new(RwLock::new(BTreeMap::new())),
|
||||||
ttl: Duration::from_mins(10),
|
ttl: Duration::from_secs(10 * 60),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user