Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ var os = require('os'); | ||
module.exports = function(startFn, options) { | ||
if (cluster.isWorker) return startFn(); | ||
if (cluster.isWorker) return startFn(cluster.worker.id); | ||
@@ -9,0 +9,0 @@ options = options || {}; |
{ | ||
"name": "throng", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple worker-manager for clustered apps", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -60,6 +60,5 @@ # Throng | ||
var throng = require('throng'); | ||
var config = require('config'); | ||
throng(start, { | ||
workers: config.single ? 1 : null, | ||
workers: 4, | ||
lifetime: Infinity, | ||
@@ -66,0 +65,0 @@ grace: 4000 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7096
74