Commit 0d1a1d7
committed
refactor: refactor queue handling and improve test performance
- Add import for `github.com/golang-queue/queue/core`
- Change `queue.QueuedMessage` to `core.TaskMessage` in `nsq.WithRunFunc`
- Reduce sleep duration from 50ms to 10ms
Signed-off-by: appleboy <[email protected]>1 parent 4cb2969 commit 0d1a1d7
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
0 commit comments