File tree 6 files changed +249
-373
lines changed
6 files changed +249
-373
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ func main() {
34
34
w := redisdb .NewWorker (
35
35
redisdb .WithAddr ("127.0.0.1:6379" ),
36
36
redisdb .WithChannel ("foobar" ),
37
- redisdb .WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
37
+ redisdb .WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
38
38
var v * job
39
- if err := json .Unmarshal (m .Bytes (), & v ); err != nil {
39
+ if err := json .Unmarshal (m .Payload (), & v ); err != nil {
40
40
return err
41
41
}
42
42
rets <- v .Message
Original file line number Diff line number Diff line change 1
1
module example
2
2
3
- go 1.16
3
+ go 1.22
4
4
5
5
require (
6
6
github.com/appleboy/graceful v0.0.4
7
- github.com/golang-queue/queue v0.1.4-0.20221210024521-cb8720b0c721
7
+ github.com/golang-queue/queue v0.3.0
8
8
github.com/golang-queue/redisdb v0.0.4
9
9
)
10
10
11
+ require (
12
+ github.com/cespare/xxhash/v2 v2.2.0 // indirect
13
+ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
14
+ github.com/jpillora/backoff v1.0.0 // indirect
15
+ github.com/redis/go-redis/v9 v9.7.0 // indirect
16
+ github.com/yassinebenaid/godump v0.11.1 // indirect
17
+ )
18
+
11
19
replace github.com/golang-queue/redisdb => ../../
You can’t perform that action at this time.
0 commit comments