Skip to content

Commit

Permalink
Update sharded-adapter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Mar 13, 2024
1 parent 696e294 commit 1391c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sharded-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ class ShardedRedisAdapter extends ClusterAdapter {
message.type === MessageType.BROADCAST &&
message.data.requestId === undefined &&
message.data.opts.rooms.length === 1 &&
(this.opts.dynamicPrivateChannels || !looksLikeASocketId(message.data.opts.rooms[0])
);
(this.opts.dynamicPrivateChannels ||
!looksLikeASocketId(message.data.opts.rooms[0]));
if (useDynamicChannel) {
return this.dynamicChannel(message.data.opts.rooms[0]);
} else {
Expand Down

0 comments on commit 1391c28

Please sign in to comment.