Skip to content

Commit

Permalink
ran crystal format
Browse files Browse the repository at this point in the history
  • Loading branch information
timestretch committed Jul 19, 2020
1 parent 9a84511 commit fb2d8c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mysql/connection.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ class MySql::Connection < DB::Connection
else
initial_catalog = nil
end

if !context.uri.query.nil?
params = HTTP::Params.parse(context.uri.query.to_s)
end

if !params.nil? && params.has_key?("socket")
@socket = UNIXSocket.new(params["socket"])
else
@socket = TCPSocket.new(host, port)
end

handshake = read_packet(Protocol::HandshakeV10)

write_packet(1) do |packet|
Expand Down

0 comments on commit fb2d8c9

Please sign in to comment.