summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-28 16:43:59 +0300
committerValery Piashchynski <[email protected]>2021-04-28 16:43:59 +0300
commitb789df7dcc9268f98f2bacfb40f753b10d521e4f (patch)
tree126b0fd8271f27e77f9107906bb0e6713a49d6ab /pkg
parent30c25f17fa7d6386e33a4894c812f7ca5db990ad (diff)
- Update CHANGELOG
- Add tests for the etags functionality Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/worker_watcher/worker_watcher.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/worker_watcher/worker_watcher.go b/pkg/worker_watcher/worker_watcher.go
index a6dfe43e..5aec4ee6 100755
--- a/pkg/worker_watcher/worker_watcher.go
+++ b/pkg/worker_watcher/worker_watcher.go
@@ -153,7 +153,7 @@ func (ww *workerWatcher) Allocate() error {
return nil
}
-// Remove
+// Remove worker
func (ww *workerWatcher) Remove(wb worker.BaseProcess) {
ww.Lock()
defer ww.Unlock()
@@ -172,7 +172,7 @@ func (ww *workerWatcher) Remove(wb worker.BaseProcess) {
}
}
-// O(1) operation
+// Push O(1) operation
func (ww *workerWatcher) Push(w worker.BaseProcess) {
if w.State().Value() != worker.StateReady {
_ = w.Kill()