Skip to content

Commit d64cbca

Browse files
committed
celanup
1 parent 09c927d commit d64cbca

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/ch/connection.ex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,6 @@ defmodule Ch.Connection do
429429
scheme = String.to_existing_atom(opts[:scheme] || "http")
430430
address = opts[:hostname] || "localhost"
431431
port = opts[:port] || 8123
432-
settings = opts[:settings] || []
433-
434-
settings =
435-
settings
436-
|> Keyword.put_new(:output_format_binary_write_json_as_string, 1)
437-
|> Keyword.put_new(:input_format_binary_read_json_as_string, 1)
438-
439432
mint_opts = [mode: :passive] ++ Keyword.take(opts, [:hostname, :transport_opts])
440433

441434
with {:ok, conn} <- HTTP.connect(scheme, address, port, mint_opts) do
@@ -445,7 +438,7 @@ defmodule Ch.Connection do
445438
|> maybe_put_private(:database, opts[:database])
446439
|> maybe_put_private(:username, opts[:username])
447440
|> maybe_put_private(:password, opts[:password])
448-
|> maybe_put_private(:settings, settings)
441+
|> maybe_put_private(:settings, opts[:settings])
449442
|> maybe_put_private(:connect_options, opts)
450443

451444
{:ok, conn}

0 commit comments

Comments
 (0)