In the termination logic of the code snippet below:
|
action.terminate = append(action.terminate, pid) |
// exceeded intensity. start termination
for _, cs := range s.spec {
if cs.pid == empty {
continue
}
action.terminate = append(action.terminate, pid) // ❌ maybe incorrect variable "pid" used here ?
}
The code erroneously appends the variable pid to action.terminate instead of using cs.pid.
(I'm not very familiar with Ergo and Go, so my understanding might be incorrect.)