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,
|
Consumer: c.group,
|
||||||
Streams: c.streams,
|
Streams: c.streams,
|
||||||
Count: int64(READ_COUNT),
|
Count: int64(READ_COUNT),
|
||||||
Block: 200 * time.Millisecond,
|
Block: 2000 * time.Millisecond,
|
||||||
}).Result()
|
}).Result()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err, ok := err.(net.Error); ok && err.Timeout() {
|
if err, ok := err.(net.Error); ok && err.Timeout() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue