From ae497b805937352849661fb16a73301bed5c460d Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Mon, 20 Jan 2025 09:42:46 +0300 Subject: [PATCH] refactoring --- .../org/redisson/connection/MasterSlaveConnectionManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redisson/src/main/java/org/redisson/connection/MasterSlaveConnectionManager.java b/redisson/src/main/java/org/redisson/connection/MasterSlaveConnectionManager.java index 3d7dde525..2502c2226 100644 --- a/redisson/src/main/java/org/redisson/connection/MasterSlaveConnectionManager.java +++ b/redisson/src/main/java/org/redisson/connection/MasterSlaveConnectionManager.java @@ -402,6 +402,10 @@ public class MasterSlaveConnectionManager implements ConnectionManager { } private NodeType getNodeType(NodeType type, InetSocketAddress address) { + if (getServiceManager().getCfg().isSingleConfig()) { + return NodeType.MASTER; + } + if (type != NodeType.SENTINEL) { MasterSlaveEntry entry = getEntry(address); if (entry != null) {