Skip to content

Commit

Permalink
docs: constructor param in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
didinele committed May 8, 2023
1 parent 92bc6d8 commit d2c7c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/redis-gateway/README.md
Expand Up @@ -99,8 +99,8 @@ const rest = new REST({ version: '10' }).setToken(token);
const redis = new Redis();
// you can get retrieve your shard count however you want, it's used for some calculations and should be your bot's TOTAL shard count
// across "clusters" or anything else.
const broker = new PubSubRedisBroker({ redisClient: redis }, Number(process.env.SHARD_COUNT!));
const gateway = new RedisGateway(broker);
const broker = new PubSubRedisBroker({ redisClient: redis });
const gateway = new RedisGateway(broker, Number(process.env.SHARD_COUNT!));

const client = new Client({ rest, gateway });

Expand Down

0 comments on commit d2c7c90

Please sign in to comment.