summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/worker_watcher')
-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 5c0882b0..348f0459 100755
--- a/pkg/worker_watcher/worker_watcher.go
+++ b/pkg/worker_watcher/worker_watcher.go
@@ -178,7 +178,7 @@ func (ww *workerWatcher) GetFreeWorker(ctx context.Context) (worker.BaseProcess,
// thread safe operation
w, stop := ww.stack.Pop()
if stop {
- return nil, errors.E(op, errors.ErrWatcherStopped)
+ return nil, errors.E(op, errors.WatcherStopped)
}
// handle worker remove state
@@ -198,7 +198,7 @@ func (ww *workerWatcher) GetFreeWorker(ctx context.Context) (worker.BaseProcess,
default:
w, stop = ww.stack.Pop()
if stop {
- return nil, errors.E(op, errors.ErrWatcherStopped)
+ return nil, errors.E(op, errors.WatcherStopped)
}
if w == nil {
continue