Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 3480a68

Browse files
authored
fix(Cluster): redis store construction (#36)
1 parent c79da9d commit 3480a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/gateway/src/websocket/Cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class Cluster extends EventEmitter {
193193
...shardOptions
194194
} = options;
195195

196-
this.guilds = redis ? new RedisStore({ redis, hash: 'guilds' }) : new Store<APIGuild>();
196+
this.guilds = redis ? new RedisStore({ redis, hash: 'guilds', encode: JSON.stringify, decode: JSON.parse }) : new Store<APIGuild>();
197197
this.rest = new RestManager(auth, { mutex: redis ? new RedisMutex(redis) : new MemoryMutex() });
198198
this.shardCount = shardCount;
199199
this.startingShard = startingShard;

0 commit comments

Comments
 (0)