diff options
author | Valery Piashchynski <[email protected]> | 2020-12-24 17:43:20 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-24 17:43:20 +0300 |
commit | a099743641466e0cde723ab0eeb500d836645308 (patch) | |
tree | 45f7db4c9d7bbd762bbb27c09dd9f11dbe5b0817 /pkg/worker_watcher/worker_watcher.go | |
parent | 431bb7ee50d49e8ff6a812826f8536f44447ebf5 (diff) |
Remove unnecessary mutex when adding worker to watcherv2.0.0-alpha30
Diffstat (limited to 'pkg/worker_watcher/worker_watcher.go')
-rwxr-xr-x | pkg/worker_watcher/worker_watcher.go | 2 |
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) }() |