Skip to content

Commit

Permalink
[Fix] Enviromental Variables needs to be Strings
Browse files Browse the repository at this point in the history
This fixes Node 13+ Compatibility
  • Loading branch information
DevYukine committed Feb 19, 2020
1 parent 61527ef commit 0d152eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cluster/Cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Cluster extends EventEmitter {
}

public async spawn() {
this.worker = fork({ CLUSTER_SHARDS: this.shards.join(','), CLUSTER_ID: this.id, CLUSTER_SHARD_COUNT: this.manager.shardCount, CLUSTER_CLUSTER_COUNT: this.manager.clusterCount });
this.worker = fork({ CLUSTER_SHARDS: this.shards.join(','), CLUSTER_ID: this.id.toString(), CLUSTER_SHARD_COUNT: this.manager.shardCount.toString(), CLUSTER_CLUSTER_COUNT: this.manager.clusterCount.toString() });

this.worker.once('exit', this._exitListenerFunction);

Expand Down

0 comments on commit 0d152eb

Please sign in to comment.