Skip to content

Commit

Permalink
Handle redis.ErrNil for Queues's latency (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
chopraanmol1 authored May 25, 2023
1 parent 075fbb8 commit 39a9c48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ func (c *Client) Queues() ([]*Queue, error) {
for _, s := range queues {
if s.Count > 0 {
b, err := redis.Bytes(conn.Receive())
if err == redis.ErrNil {
continue
}
if err != nil {
logError("client.queues.receive2", err)
return nil, err
Expand Down

0 comments on commit 39a9c48

Please sign in to comment.