Skip to content

Commit

Permalink
Update lib/supavisor/db_handler.ex
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <[email protected]>
  • Loading branch information
abc3 and josevalim authored Sep 21, 2023
1 parent d5f8258 commit 3f10ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/supavisor/db_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ defmodule Supavisor.DbHandler do
Server.has_read_only_error?(pkts) ->
Logger.error("read only error")

if length(pkts) == 1 do
with [_] <- pkts do
# need to flush ready_for_query if it's not in same packet
:ok = receive_ready_for_query()
end
Expand Down

0 comments on commit 3f10ff7

Please sign in to comment.