summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-24 17:43:20 +0300
committerValery Piashchynski <[email protected]>2020-12-24 17:43:20 +0300
commita099743641466e0cde723ab0eeb500d836645308 (patch)
tree45f7db4c9d7bbd762bbb27c09dd9f11dbe5b0817 /pkg
parent431bb7ee50d49e8ff6a812826f8536f44447ebf5 (diff)
Remove unnecessary mutex when adding worker to watcherv2.0.0-alpha30
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/worker_watcher/worker_watcher.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/worker_watcher/worker_watcher.go b/pkg/worker_watcher/worker_watcher.go
index 39d334ba..5c0882b0 100755
--- a/pkg/worker_watcher/worker_watcher.go
+++ b/pkg/worker_watcher/worker_watcher.go
@@ -294,8 +294,6 @@ func (ww *workerWatcher) wait(w worker.BaseProcess) {
}
func (ww *workerWatcher) addToWatch(wb worker.BaseProcess) {
- ww.mutex.Lock()
- defer ww.mutex.Unlock()
go func() {
ww.wait(wb)
}()