Skip to content

Commit

Permalink
Fix typo in method name (#2853)
Browse files Browse the repository at this point in the history
Co-authored-by: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com>
  • Loading branch information
andrewmcnamara and sazzad16 committed Jan 31, 2022
1 parent 3f60dcb commit f980367
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public DefaultJedisSocketFactory(HostAndPort hostAndPort, JedisClientConfig conf
}
}

private Socket connectToFirstSuccsefulHost(HostAndPort hostAndPort) throws Exception {
private Socket connectToFirstSuccessfulHost(HostAndPort hostAndPort) throws Exception {
List<InetAddress> hosts = Arrays.asList(InetAddress.getAllByName(hostAndPort.getHost()));
if (hosts.size() > 1) {
Collections.shuffle(hosts);
Expand Down Expand Up @@ -84,7 +84,7 @@ public Socket createSocket() throws JedisConnectionException {
Socket socket = null;
try {
HostAndPort _hostAndPort = getSocketHostAndPort();
socket = connectToFirstSuccsefulHost(_hostAndPort);
socket = connectToFirstSuccessfulHost(_hostAndPort);
socket.setSoTimeout(socketTimeout);

if (ssl) {
Expand Down

0 comments on commit f980367

Please sign in to comment.