Skip to content

Commit 5c3d9ae

Browse files
committed
fix dialyzer warning in connection.ex
1 parent 82427e6 commit 5c3d9ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/arangox/connection.ex

+4-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ defmodule Arangox.Connection do
118118

119119
defp do_connect(client, [], opts) do
120120
{:error,
121-
new(nil, client, nil, true, opts)
121+
__MODULE__
122+
|> struct(opts)
123+
|> Map.put(:client, client)
124+
|> Map.put(:failover?, true)
122125
|> exception("all endpoints are unavailable")
123126
|> failover_callback(opts)}
124127
end

0 commit comments

Comments
 (0)