diff options
-rw-r--r-- | config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java index 29c05e0a83b..cc005a54054 100644 --- a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java +++ b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java @@ -80,7 +80,7 @@ public class JRTConnectionPool implements ConnectionPool { * 1. the current connection is unhealthy and should not be selected when switching * 2. There is more than 1 source. */ - public synchronized JRTConnection switchConnection() { + synchronized JRTConnection switchConnection() { if (getSources().size() <= 1) throw new IllegalStateException("Cannot switch connection, not enough sources"); List<JRTConnection> sourceCandidates = getSources().stream() |