server: slow refresh interval as procmail should be on demand
This commit is contained in:
parent
3f87038776
commit
90d7f79ca0
@ -165,6 +165,7 @@ async fn start_ws(
|
|||||||
struct NotificationParams {
|
struct NotificationParams {
|
||||||
delay_ms: Option<u64>,
|
delay_ms: Option<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn send_refresh_websocket_handler(
|
async fn send_refresh_websocket_handler(
|
||||||
State(AppState {
|
State(AppState {
|
||||||
connection_tracker, ..
|
connection_tracker, ..
|
||||||
@ -249,7 +250,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
|
|
||||||
let connection_tracker = Arc::new(Mutex::new(ConnectionTracker::default()));
|
let connection_tracker = Arc::new(Mutex::new(ConnectionTracker::default()));
|
||||||
let ct = Arc::clone(&connection_tracker);
|
let ct = Arc::clone(&connection_tracker);
|
||||||
let poll_time = Duration::from_secs(10);
|
let poll_time = Duration::from_secs(60);
|
||||||
let _h = tokio::spawn(watch_new(nm.clone(), pool, ct, poll_time));
|
let _h = tokio::spawn(watch_new(nm.clone(), pool, ct, poll_time));
|
||||||
|
|
||||||
let api_routes = Router::new()
|
let api_routes = Router::new()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user