Skip to content

Commit 44c6dbf

Browse files
committed
refactor the dbconnection behaviour module
1 parent 82b7c99 commit 44c6dbf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/mongo.ex

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,18 +1535,6 @@ defmodule Mongo do
15351535
end
15361536
end
15371537

1538-
def exec_hello(conn, opts) do
1539-
with {:ok, _cmd, response} <- DBConnection.execute(conn, %Query{action: {:exec_hello, []}}, [], defaults(opts)) do
1540-
check_for_error(response, [hello: 1], opts)
1541-
end
1542-
end
1543-
1544-
def exec_hello(conn, cmd, opts) do
1545-
with {:ok, _cmd, response} <- DBConnection.execute(conn, %Query{action: {:exec_hello, cmd}}, [], defaults(opts)) do
1546-
check_for_error(response, cmd, opts)
1547-
end
1548-
end
1549-
15501538
def exec_more_to_come(conn, opts) do
15511539
with {:ok, _cmd, response} <- DBConnection.execute(conn, %Query{action: :more_to_come}, [], defaults(opts)) do
15521540
check_for_error(response, [:more_to_come], opts)

0 commit comments

Comments
 (0)