Skip to content

Commit 88783cc

Browse files
update typespecs
1 parent dc851b8 commit 88783cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/postgrex/protocol.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ defmodule Postgrex.Protocol do
351351
| {:error, %DBConnection.TransactionError{}, state}
352352
| {:disconnect, %RuntimeError{}, state}
353353
| {:disconnect, %DBConnection.ConnectionError{}, state}
354+
| {:disconnect_and_retry, %DBConnection.ConnectionError{}, state}
354355
def handle_prepare(%Query{} = query, _, %{postgres: {_, _}} = s) do
355356
lock_error(s, :prepare, query)
356357
end
@@ -595,6 +596,7 @@ defmodule Postgrex.Protocol do
595596
| {DBConnection.status(), state}
596597
| {:disconnect, %RuntimeError{}, state}
597598
| {:disconnect, %DBConnection.ConnectionError{} | Postgrex.Error.t(), state}
599+
| {:disconnect_and_retry, %DBConnection.ConnectionError{}, state}
598600
def handle_begin(_, %{postgres: {_, _}} = s) do
599601
lock_error(s, :begin)
600602
end

0 commit comments

Comments
 (0)