Skip to content

Commit 99007d9

Browse files
committed
correct overwriting exec files array in constructor
1 parent 5869b03 commit 99007d9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function run(){
7676
files: [
7777
{ masterPath: '/src/task.js', name: 'task.js', workerPath: '/workplace/task.js' }, // if task.js file not passed to workers , Master will use default one located in /src/task.js , here you can ovverride it by changing above details
7878
{ masterPath: '/src/Logger.js', name: 'Logger.js', workerPath: '/workplace/Logger.js' },
79-
{ masterPath: '/src/Helper.js', name: 'Helper.js', workerPath: '/workplace/Helper.js' },
79+
{ masterPath: '/src/Helper.js', name: 'Helper.js', workerPath: '/workplace/Helper.js' },
8080
],
8181
/* masterPath and workerPath are not absolute , NEVER access files out of their process.cwd() path.
8282
Are relative to their process current location , respectively */

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "queue-xec-master",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Master queue, push jobs and gathers results from online workers.",
55
"main": "index.js",
66
"scripts": {

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class Master {
3131
this.peer = Bugout(this.token);
3232
this.onResults = onResults;
3333
this.execAssets = execAssets;
34-
this.execAssets.files = [];
3534

3635
this.onSeen = this.onSeen.bind(this);
3736
this.init = this.init.bind(this);

0 commit comments

Comments
 (0)