feat(redis): increased the block duration for read operation

This commit is contained in:
Alexander 2025-05-16 16:58:04 +02:00
parent a460d8c9a2
commit 0926888213

View file

@ -80,7 +80,7 @@ func (c *Consumer) ConsumeNext() error {
Consumer: c.group,
Streams: c.streams,
Count: int64(READ_COUNT),
Block: 200 * time.Millisecond,
Block: 2000 * time.Millisecond,
}).Result()
if err != nil {
if err, ok := err.(net.Error); ok && err.Timeout() {