Skip to content

Commit

Permalink
remove worker unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoragrega committed Jan 27, 2021
1 parent 0c8cbda commit 272d71c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ func (p *Pool) newWorker() *worker {
}

type worker struct {
job func()
interval time.Duration
cancel func()
cancel func()
}

func (w *worker) work(ctx context.Context, job Job, stopped chan<- struct{}) {
Expand Down

0 comments on commit 272d71c

Please sign in to comment.