Skip to content

Commit 86480aa

Browse files
authored
fix cluster.sUnsubscribe - make listener optional (#2946)
1 parent 73d7ae7 commit 86480aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/lib/cluster/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export default class RedisCluster<
548548

549549
SUNSUBSCRIBE<T extends boolean = false>(
550550
channels: string | Array<string>,
551-
listener: PubSubListener<T>,
551+
listener?: PubSubListener<T>,
552552
bufferMode?: T
553553
) {
554554
return this._self.#slots.executeShardedUnsubscribeCommand(

0 commit comments

Comments
 (0)