mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-20 04:36:09 +08:00
fix: task id not update
This commit is contained in:
@ -16,8 +16,8 @@ type Manager[K comparable] struct {
|
||||
|
||||
func (tm *Manager[K]) Submit(task *Task[K]) K {
|
||||
if tm.updateID != nil {
|
||||
tm.updateID(&tm.curID)
|
||||
task.ID = tm.curID
|
||||
tm.updateID(&task.ID)
|
||||
}
|
||||
tm.tasks.Store(task.ID, task)
|
||||
tm.do(task)
|
||||
|
Reference in New Issue
Block a user