chore: fix early return from redis collab update stream reader

This commit is contained in:
Bartosz Sypytkowski 2024-10-17 12:58:20 +02:00
parent 15f438ea05
commit f40f4b1583
2 changed files with 1 additions and 2 deletions

View File

@ -116,7 +116,7 @@ impl CollabRedisStream {
Some(id) => Some(MessageId::try_from(id)?),
}
};
while Some(since) < until {
while until.is_none() || since < until.unwrap() {
let last_id = since.to_string();
let batch: CollabStreamUpdateBatch = conn
.xread_options(&[&stream_key], &[&last_id], &read_options)

View File

@ -523,7 +523,6 @@ impl CollabGroup {
message_origin: &CollabOrigin,
msg_id: MsgId,
) -> Result<Option<CollabAck>, RealtimeError> {
tracing::trace!("handling collab message: {}", msg_id);
let mut decoder = DecoderV1::from(payload);
let reader = MessageReader::new(&mut decoder);
let mut ack_response = None;