mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 13:21:58 +08:00
Change TaskMessage.ID type from uuid.UUID to string
This commit is contained in:
@@ -125,10 +125,10 @@ func (h *heartbeater) start(wg *sync.WaitGroup) {
|
||||
timer.Reset(h.interval)
|
||||
|
||||
case w := <-h.starting:
|
||||
h.workers[w.msg.ID.String()] = w
|
||||
h.workers[w.msg.ID] = w
|
||||
|
||||
case msg := <-h.finished:
|
||||
delete(h.workers, msg.ID.String())
|
||||
delete(h.workers, msg.ID)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
Reference in New Issue
Block a user