fix(backend): fixed method call in redis consumer
This commit is contained in:
parent
657b903ec3
commit
a286b0b2d2
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ func (c *Consumer) ConsumeNext() error {
|
|||
return errors.New("Too many messages per ms in redis")
|
||||
}
|
||||
bID := ts<<13 | (idx & 0x1FFF) // Max: 4096 messages/ms for 69 years
|
||||
c.messageIterator.Iterate([]byte(valueString), messages.NewBatchInfo(sessionID, r.Stream, bID, int64(ts)))
|
||||
c.messageIterator.Iterate([]byte(valueString), messages.NewBatchInfo(sessionID, r.Stream, bID, 0, int64(ts)))
|
||||
if c.autoCommit {
|
||||
if err = c.redis.XAck(r.Stream, c.group, m.ID).Err(); err != nil {
|
||||
return errors.Wrapf(err, "Acknoledgment error for messageID %v", m.ID)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue