Skip to content

Commit

Permalink
eh
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Dec 4, 2024
1 parent c6fe784 commit d0d105a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ch/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ defmodule Ch.Connection do

@impl true
@spec checkout(conn) :: {:ok, conn}
def checkout(conn), do: {:ok, conn}
def checkout(conn) do
IO.inspect(conn.socket, label: "Ch.checkout")
{:ok, conn}
end

# we "support" these four tx callbacks for Repo.checkout
# even though ClickHouse doesn't support txs
Expand Down
6 changes: 6 additions & 0 deletions test/ch/faults_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ defmodule Ch.FaultsTest do
:ok = :gen_tcp.send(mint, response)
:ok = :gen_tcp.close(mint)

IO.puts("""
----------------------------
story starts here !
----------------------------
""")

# reconnect
{:ok, mint} = :gen_tcp.accept(listen)

Expand Down

0 comments on commit d0d105a

Please sign in to comment.