Skip to content

Commit

Permalink
fix: add support for ioredis v5 (#453)
Browse files Browse the repository at this point in the history
Related: #450
  • Loading branch information
ReflexFox authored Apr 28, 2022
1 parent d55d6e5 commit d2faa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ export class RedisAdapter extends Adapter {
*/

private getNumSub(): Promise<number> {
if (this.pubClient.constructor.name === "Cluster") {
if (this.pubClient.constructor.name === "Cluster" || this.pubClient.isCluster) {
// Cluster
const nodes = this.pubClient.nodes();
return Promise.all(
Expand Down

0 comments on commit d2faa8a

Please sign in to comment.