Skip to content

Commit d2faa8a

Browse files
authored
fix: add support for ioredis v5 (#453)
Related: #450
1 parent d55d6e5 commit d2faa8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ export class RedisAdapter extends Adapter {
920920
*/
921921

922922
private getNumSub(): Promise<number> {
923-
if (this.pubClient.constructor.name === "Cluster") {
923+
if (this.pubClient.constructor.name === "Cluster" || this.pubClient.isCluster) {
924924
// Cluster
925925
const nodes = this.pubClient.nodes();
926926
return Promise.all(

0 commit comments

Comments
 (0)