Simplify the code for the two-way variables' value-to-variable replacement. Instead of using a goroutine and two channels, use a separate struct and call a function on that directly. No functional changes.
RequeueTasksOfWorker
RequeueActiveTasksOfWorker