This commit is contained in:
AJ ONeal 2016-09-08 17:50:42 -06:00
parent 1fbd2a4b71
commit b85545a8cc
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ module.exports.create = function (opts) {
opts._promise.addWorker = function (w) { opts._promise.addWorker = function (w) {
if (!init) { if (!init) {
init = true; init = true;
setup(); setup(opts);
} }
return opts.master.addWorker(w); return opts.master.addWorker(w);
}; };

View File

@ -1,6 +1,6 @@
{ {
"name": "cluster-rpc", "name": "cluster-rpc",
"version": "1.0.2", "version": "1.0.3",
"description": "A simple way to wrap a single-instance module to enable it to work with node cluster.", "description": "A simple way to wrap a single-instance module to enable it to work with node cluster.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {