Skip to content

Commit 5c874ae

Browse files
authored
Merge pull request #481 from Ladicek/fix-cluster-connection-completion
fix RedisClusterConnection completion
2 parents 3ccfc19 + f9168e3 commit 5c874ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/vertx/redis/client/impl/RedisClusterConnection.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void send(String endpoint, int retries, Request command, Completable<Response> h
353353
}
354354

355355
try {
356-
handler.succeed(send.result());
356+
handler.complete(send.result(), send.cause());
357357
} catch (RuntimeException e) {
358358
LOG.error("Handler failure", e);
359359
}
@@ -534,7 +534,7 @@ private void batch(String endpoint, int retries, List<Request> commands, Complet
534534
}
535535

536536
try {
537-
handler.succeed(send.result());
537+
handler.complete(send.result(), send.cause());
538538
} catch (RuntimeException e) {
539539
LOG.error("Handler failure", e);
540540
}

0 commit comments

Comments
 (0)