server: slow refresh interval as procmail should be on demand

This commit is contained in:
Bill Thiede 2025-04-15 19:24:59 -07:00
parent 3f87038776
commit 90d7f79ca0

View File

@ -165,6 +165,7 @@ async fn start_ws(
struct NotificationParams {
delay_ms: Option<u64>,
}
async fn send_refresh_websocket_handler(
State(AppState {
connection_tracker, ..
@ -249,7 +250,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let connection_tracker = Arc::new(Mutex::new(ConnectionTracker::default()));
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 api_routes = Router::new()