mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-21 21:46:12 +08:00
fix:Remove useless coroutines
This commit is contained in:
@@ -193,7 +193,6 @@ func (p *processor) exec() {
|
||||
lease := base.NewLease(leaseExpirationTime)
|
||||
deadline := p.computeDeadline(msg)
|
||||
p.starting <- &workerInfo{msg, time.Now(), deadline, lease}
|
||||
go func() {
|
||||
defer func() {
|
||||
p.finished <- msg
|
||||
<-p.sema // release token
|
||||
@@ -250,7 +249,6 @@ func (p *processor) exec() {
|
||||
}
|
||||
p.handleSucceededMessage(lease, msg)
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user