Skip to content

Commit

Permalink
Merge pull request #2755 from OffchainLabs/redisstreams-improvement
Browse files Browse the repository at this point in the history
Attempt to clear from PEL again after successfull deletion of Lower
  • Loading branch information
tsahee authored Oct 25, 2024
2 parents 00d0069 + a49fa07 commit 5e65f0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pubsub/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ func (p *Producer[Request, Response]) clearMessages(ctx context.Context) time.Du
}
if _, err := p.client.XDel(ctx, p.redisStream, pelData.Lower).Result(); err != nil {
log.Error("error deleting PEL's lower message thats past its TTL", "msgID", pelData.Lower, "err", err)
return 0
return 5 * p.cfg.CheckResultInterval
}
return 0
}
}
return 5 * p.cfg.CheckResultInterval
Expand Down

0 comments on commit 5e65f0c

Please sign in to comment.