Skip to content

Commit 9a113ca

Browse files
committed
fix(cluster): suppress errors emitted from internal clients
Close #896, #899
1 parent c3cf365 commit 9a113ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/cluster/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,11 @@ class Cluster extends EventEmitter {
740740
retryStrategy: null,
741741
connectionName: "ioredisClusterRefresher"
742742
});
743+
744+
// Ignore error events since we will handle
745+
// exceptions for the CLUSTER SLOTS command.
746+
duplicatedConnection.on("error", noop);
747+
743748
duplicatedConnection.cluster(
744749
"slots",
745750
timeout((err, result) => {

0 commit comments

Comments
 (0)