Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update
Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Mar 27, 2022
commit 7cf13467cf752154edcdcc2a204011a84165a481
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ linters:
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- gochecknoinits
Expand Down
6 changes: 3 additions & 3 deletions queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (q *Queue) start() {
select {
case task = <-tasks:
// queue task before shutdown the service
q.worker.Queue(task)
_ = q.worker.Queue(task)
default:
}
return
Expand All @@ -267,12 +267,12 @@ func (q *Queue) start() {
// get worker to execute new task
select {
case <-q.quit:
q.worker.Queue(task)
_ = q.worker.Queue(task)
return
case <-q.ready:
select {
case <-q.quit:
q.worker.Queue(task)
_ = q.worker.Queue(task)
return
default:
}
Expand Down