Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Commit f95f767

Browse files
authored
Merge pull request #20 from hellofresh/bugfix/unused-field
Remove unused mutex
2 parents 54e915c + 1c54fdd commit f95f767

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

workers/worker.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
type Worker struct {
1515
die chan bool
1616
reload chan bool
17-
mutex *sync.Mutex
1817
wg *sync.WaitGroup
1918
isWorking bool
2019
}
@@ -28,7 +27,6 @@ func NewWorker() *Worker {
2827
return &Worker{
2928
die: make(chan bool, 1),
3029
reload: make(chan bool),
31-
mutex: &sync.Mutex{},
3230
wg: &sync.WaitGroup{},
3331
}
3432
}

0 commit comments

Comments
 (0)