Skip to content

Commit

Permalink
fix type conversion panic when reading scope owner from vars
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 2, 2024
1 parent 3ce6f4a commit 1b8fd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/coordinator/scheduler/task_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (ts *taskState) GetScopeOwner() types.TaskIndex {
return 0
}

return scopeOwner.(types.TaskIndex)
return types.TaskIndex(scopeOwner.(uint64))
}

func (ts *taskState) GetTaskResultUpdateChan(oldResult types.TaskResult) <-chan bool {
Expand Down

0 comments on commit 1b8fd50

Please sign in to comment.