From 72263c1b0058a436b03bce3783b33a93798f7afd Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Mon, 5 Sep 2022 08:33:51 +0300 Subject: [PATCH] formatting --- .../redisson/connection/pool/ConnectionPool.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/redisson/src/main/java/org/redisson/connection/pool/ConnectionPool.java b/redisson/src/main/java/org/redisson/connection/pool/ConnectionPool.java index ac10836d2..23392603a 100644 --- a/redisson/src/main/java/org/redisson/connection/pool/ConnectionPool.java +++ b/redisson/src/main/java/org/redisson/connection/pool/ConnectionPool.java @@ -308,8 +308,8 @@ abstract class ConnectionPool { if (entry.getNodeType() == NodeType.SLAVE) { entry.trySetupFistFail(); if (entry.isFailed()) { - checkForReconnect(entry, cause); - } + checkForReconnect(entry, cause); + } } releaseConnection(entry); @@ -321,12 +321,12 @@ abstract class ConnectionPool { if (entry.getNodeType() == NodeType.SLAVE) { entry.trySetupFistFail(); if (entry.isFailed()) { - conn.closeAsync(); - entry.getAllConnections().remove(conn); - checkForReconnect(entry, null); + conn.closeAsync(); + entry.getAllConnections().remove(conn); + checkForReconnect(entry, null); } else { - releaseConnection(entry, conn); - } + releaseConnection(entry, conn); + } } else { releaseConnection(entry, conn); }