Skip to content

Commit 4fdf7cd

Browse files
committed
chore: cleanup
1 parent fd8eebc commit 4fdf7cd

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.github/dependabot.yml

-10
This file was deleted.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ require (
1818
github.com/onsi/ginkgo v1.16.4
1919
github.com/onsi/gomega v1.16.0
2020
github.com/satori/go.uuid v1.2.0
21-
github.com/vmihailenco/msgpack/v5 v5.3.4
21+
github.com/vmihailenco/msgpack/v5 v5.3.5
2222
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
9191
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
9292
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
9393
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
94-
github.com/vmihailenco/msgpack/v5 v5.3.4 h1:qMKAwOV+meBw2Y8k9cVwAy7qErtYCwBzZ2ellBfvnqc=
95-
github.com/vmihailenco/msgpack/v5 v5.3.4/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
94+
github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU=
95+
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
9696
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
9797
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
9898
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

redisq/queue.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ func (q *Queue) Release(msg *taskq.Message) error {
243243

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

344343
func (q *Queue) cleanZombieConsumers(ctx context.Context) (int, error) {
345344
consumers, err := q.redis.XInfoConsumers(ctx, q.stream, q.streamGroup).Result()
346-
347345
if err != nil {
348346
return 0, err
349347
}

0 commit comments

Comments
 (0)