From 2d1522b9b73580805793dfda373a9c5279780397 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Aug 2023 03:25:05 +0200 Subject: [PATCH] Increase `XREAD BLOCK` time to 60000 ms --- todored/src/routes/board/redis_xread.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todored/src/routes/board/redis_xread.rs b/todored/src/routes/board/redis_xread.rs index 7e21f70..91bf93b 100644 --- a/todored/src/routes/board/redis_xread.rs +++ b/todored/src/routes/board/redis_xread.rs @@ -15,11 +15,11 @@ pub async fn handler( let mut seq = "0".to_string(); loop { - log::trace!("Waiting for events to broadcast for 5 seconds..."); + log::trace!("Waiting for events to broadcast for 60 seconds..."); let response: RedisResult = rconn.xread_options( &[&key], &[&seq], - &StreamReadOptions::default().block(5000) + &StreamReadOptions::default().block(60000) ).await; match response {