From 5552bfa5a9820a74f56cea77f8a2e718da9a9893 Mon Sep 17 00:00:00 2001 From: Andrew McNamara Date: Mon, 31 Jan 2022 09:49:40 +1100 Subject: [PATCH] Fix typo in method name --- .../java/redis/clients/jedis/DefaultJedisSocketFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/redis/clients/jedis/DefaultJedisSocketFactory.java b/src/main/java/redis/clients/jedis/DefaultJedisSocketFactory.java index cc601ad0c0..593a551511 100644 --- a/src/main/java/redis/clients/jedis/DefaultJedisSocketFactory.java +++ b/src/main/java/redis/clients/jedis/DefaultJedisSocketFactory.java @@ -54,7 +54,7 @@ public DefaultJedisSocketFactory(HostAndPort hostAndPort, JedisClientConfig conf } } - private void connectToFirstSuccsefulHost(Socket socket, HostAndPort hostAndPort) throws Exception { + private void connectToFirstSuccessfulHost(Socket socket, HostAndPort hostAndPort) throws Exception { List hosts = Arrays.asList(InetAddress.getAllByName(hostAndPort.getHost())); if (hosts.size() > 1) { Collections.shuffle(hosts); @@ -82,7 +82,7 @@ public Socket createSocket() throws JedisConnectionException { socket.setSoLinger(true, 0); // Control calls close () method, the underlying socket is closed immediately HostAndPort _hostAndPort = getSocketHostAndPort(); - connectToFirstSuccsefulHost(socket, _hostAndPort); + connectToFirstSuccessfulHost(socket, _hostAndPort); socket.setSoTimeout(socketTimeout); if (ssl) {