2
0
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:
yipinhe
2023-06-29 17:33:30 +08:00
parent fde294be32
commit daceaaa562

View File

@@ -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)
}
}()
}
}