Commit 86b92ba
committed
refactor: refactor queue handling to use core TaskMessage interface
- Add import for `github.com/golang-queue/queue/core`
- Change function parameter type from `queue.QueuedMessage` to `core.TaskMessage`
- Replace `m.Bytes()` with `m.Payload()` in JSON unmarshal function
Signed-off-by: appleboy <[email protected]>1 parent f1214fa commit 86b92ba
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments