diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-04 04:02:59 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-04 04:02:59 +0300 |
commit | 0d7a99a588f620be37584eb27981245d0b92ad8e (patch) | |
tree | c5982f71068dc4f388deb450a7147af681047329 | |
parent | 39a2075fd97e95d74c0fa412bba6a856a1f5a99e (diff) |
jobd-master fixes
-rw-r--r-- | src/lib/workers-list.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/workers-list.js b/src/lib/workers-list.js index 27953bb..3f2246e 100644 --- a/src/lib/workers-list.js +++ b/src/lib/workers-list.js @@ -126,7 +126,7 @@ class WorkersList { targets }) ) - .then(error => { + .catch(error => { this.logger.error('_pokeWorkerConnection:', error) }) } @@ -359,7 +359,7 @@ class WorkersList { */ _pauseContinueWorkers(action, targets) { (targets === null ? this.workers : this.getWorkersByTargets(targets)) - .map(worker => { + .forEach(worker => { this.logger.debug(`${action}Targets: sending ${action} request to ${worker.connection.remoteAddr()}`) let data = {} |