mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 00:04:18 +00:00
Increase XREAD BLOCK
time to 60000 ms
This commit is contained in:
parent
baac11c3ea
commit
2d1522b9b7
1 changed files with 2 additions and 2 deletions
|
@ -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<StreamReadReply> = rconn.xread_options(
|
||||
&[&key],
|
||||
&[&seq],
|
||||
&StreamReadOptions::default().block(5000)
|
||||
&StreamReadOptions::default().block(60000)
|
||||
).await;
|
||||
|
||||
match response {
|
||||
|
|
Loading…
Reference in a new issue