feat(redis): increased the block duration for read operation
This commit is contained in:
parent
a460d8c9a2
commit
0926888213
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue