Skip to content

Commit 1eb4182

Browse files
committed
chore: upgrade dependency
Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent abdeee5 commit 1eb4182

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup golangci-lint
1515
uses: golangci/golangci-lint-action@v3
1616
with:
17-
version: v1.45.0
17+
version: v1.49.0
1818
args: --verbose
1919

2020
# Label of the container job

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
GO ?= go
2+
13
test:
2-
go test -v -cover -covermode=atomic -coverprofile=coverage.out
4+
$(GO) test -v -cover -covermode=atomic -coverprofile=coverage.out ./...
5+
6+
upgrade:
7+
$(GO) get -u ./...
38

49
.PHONY: reset
510
reset:

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.18
44

55
require (
66
github.com/golang-queue/queue v0.1.3
7-
github.com/rabbitmq/amqp091-go v1.4.0
7+
github.com/rabbitmq/amqp091-go v1.5.0
88
github.com/stretchr/testify v1.8.0
99
go.uber.org/goleak v1.1.12
1010
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
1313
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
1414
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1515
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
16-
github.com/rabbitmq/amqp091-go v1.4.0 h1:T2G+J9W9OY4p64Di23J6yH7tOkMocgnESvYeBjuG9cY=
17-
github.com/rabbitmq/amqp091-go v1.4.0/go.mod h1:JsV0ofX5f1nwOGafb8L5rBItt9GyhfQfcJj+oyz0dGg=
16+
github.com/rabbitmq/amqp091-go v1.5.0 h1:VouyHPBu1CrKyJVfteGknGOGCzmOz0zcv/tONLkb7rg=
17+
github.com/rabbitmq/amqp091-go v1.5.0/go.mod h1:JsV0ofX5f1nwOGafb8L5rBItt9GyhfQfcJj+oyz0dGg=
1818
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
1919
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
2020
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=

rabbitmq.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (w *Worker) Queue(job core.QueuedMessage) error {
182182
return queue.ErrQueueShutdown
183183
}
184184

185-
err := w.channel.Publish(
185+
err := w.channel.PublishWithContext(
186+
context.Background(),
186187
w.opts.exchangeName, // exchange
187188
w.opts.routingKey, // routing key
188189
false, // mandatory

0 commit comments

Comments
 (0)