Skip to content

Commit

Permalink
chore: remove codes from previous approach
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber committed Feb 29, 2024
1 parent 61693df commit 91abff7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ type (
// workerTask implements Task for it to be used in a hashMap; two workerTasks
// are equal if their underlying Tasks are equal.
workerTask struct {
Worker *scheduledWorker
Task Task
TaskErr error
Worker *scheduledWorker
Task Task
}
)

Expand Down Expand Up @@ -164,7 +163,6 @@ func (s *Runner[TaskType]) ApplyTasks(ctx context.Context, tt []TaskType) error
go func() {
defer s.running.Done()
defer close(newWorker.Exited)
// Gather error encountered by worker when running the defined task.
newWorker.Worker.Run(workerCtx)
}()

Expand Down

0 comments on commit 91abff7

Please sign in to comment.