Skip to content

Commit

Permalink
Merge pull request #4 from filipenevola/patch-1
Browse files Browse the repository at this point in the history
Update MasterCluster to avoid breaking when no options are provided
  • Loading branch information
Nathan Schwarz committed Feb 16, 2021
2 parents 020582d + 49ddfff commit ee2b089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cluster/MasterCluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MasterCluster extends StaticCluster {
@params (taskMap: Object, masterProps: { port: Integer, maxAvailableWorkers: Integer, refreshRate: Integer, inMemoryOnly: Boolean })
initialize Cluster on the master
*/
constructor(taskMap, { port = 3008, maxAvailableWorkers = MAX_CPUS, refreshRate = 1000, inMemoryOnly = false, messageBroker = null }) {
constructor(taskMap, { port = 3008, maxAvailableWorkers = MAX_CPUS, refreshRate = 1000, inMemoryOnly = false, messageBroker = null } = {}) {
super()
Meteor.startup(() => {
if (maxAvailableWorkers > MAX_CPUS) {
Expand Down

0 comments on commit ee2b089

Please sign in to comment.