Skip to content

Commit

Permalink
[Feat] Add ShardClientUtil#shards (#373)
Browse files Browse the repository at this point in the history
Co-authored-by: Ramazan Bodur <blueinc07@gmail.com>
  • Loading branch information
Vexyr and RaknaX committed Jun 30, 2020
1 parent 7163a5f commit 5fb0398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Sharding/ShardClientUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class ShardClientUtil {
public readonly shardCount = Number(process.env.CLUSTER_SHARD_COUNT);
public readonly id = Number(process.env.CLUSTER_ID);
public readonly ipc = new ClusterIPC(this.client, this.id, this.ipcSocket);
public readonly shards = String(process.env.CLUSTER_SHARDS).split(",");

public constructor(public client: Client, public ipcSocket: string | number) {
}
Expand Down

0 comments on commit 5fb0398

Please sign in to comment.