ConnectionPool middleware: handle connection opening errors
This commit is contained in:
parent
9d6aca5bee
commit
129a2f48df
|
@ -42,6 +42,9 @@ def call(%Tesla.Env{url: url, opts: opts} = env, next, _) do
|
|||
ConnectionPool.release_conn(conn_pid)
|
||||
err
|
||||
end
|
||||
|
||||
err ->
|
||||
err
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue