We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae923fb commit 6d3b0b9Copy full SHA for 6d3b0b9
queue.go
@@ -28,8 +28,8 @@ type (
28
29
// Job with Timeout
30
Job struct {
31
- Timeout time.Duration
32
- Body []byte
+ Timeout time.Duration `json:"timeout"`
+ Body []byte `json:"body"`
33
}
34
)
35
@@ -154,7 +154,7 @@ func (q *Queue) Queue(job QueuedMessage) error {
154
155
// Queue to queue all job
156
func (q *Queue) QueueWithTimeout(timeout time.Duration, job QueuedMessage) error {
157
- return q.handleQueue(q.timeout, job)
+ return q.handleQueue(timeout, job)
158
159
160
func (q *Queue) work() {
0 commit comments