Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Oct 28, 2021
1 parent fd8eebc commit 4fdf7cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ require (
github.com/onsi/ginkgo v1.16.4
github.com/onsi/gomega v1.16.0
github.com/satori/go.uuid v1.2.0
github.com/vmihailenco/msgpack/v5 v5.3.4
github.com/vmihailenco/msgpack/v5 v5.3.5
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/vmihailenco/msgpack/v5 v5.3.4 h1:qMKAwOV+meBw2Y8k9cVwAy7qErtYCwBzZ2ellBfvnqc=
github.com/vmihailenco/msgpack/v5 v5.3.4/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU=
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
4 changes: 1 addition & 3 deletions redisq/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ func (q *Queue) Release(msg *taskq.Message) error {

// Delete deletes the message from the queue.
func (q *Queue) Delete(msg *taskq.Message) error {
err := q.redis.XAck(msg.Ctx, q.stream, q.streamGroup, msg.ID).Err()
if err != nil {
if err := q.redis.XAck(msg.Ctx, q.stream, q.streamGroup, msg.ID).Err(); err != nil {
return err
}
return q.redis.XDel(msg.Ctx, q.stream, msg.ID).Err()
Expand Down Expand Up @@ -343,7 +342,6 @@ func (q *Queue) scheduleDelayed(ctx context.Context) (int, error) {

func (q *Queue) cleanZombieConsumers(ctx context.Context) (int, error) {
consumers, err := q.redis.XInfoConsumers(ctx, q.stream, q.streamGroup).Result()

if err != nil {
return 0, err
}
Expand Down

0 comments on commit 4fdf7cd

Please sign in to comment.