Skip to content

Commit

Permalink
Rename Connection#ssl_context
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wille committed Apr 23, 2018
1 parent cb6f981 commit c2dbfbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/redis/connection.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ require "openssl"

# :nodoc:
class Redis::Connection
def initialize(host, port, unixsocket, sslcontext)
def initialize(host, port, unixsocket, ssl_context)
if unixsocket
@socket = UNIXSocket.new(unixsocket)
elsif sslcontext
elsif ssl_context
tcpsocket = TCPSocket.new(host, port)
tcpsocket.sync = false
@socket = OpenSSL::SSL::Socket::Client.new(tcpsocket, sslcontext)
@socket = OpenSSL::SSL::Socket::Client.new(tcpsocket, ssl_context)
else
tcpsocket = TCPSocket.new(host, port)
tcpsocket.sync = false
Expand Down

0 comments on commit c2dbfbc

Please sign in to comment.