Skip to content

Commit

Permalink
fix: revert @timeout to 15_000 and set subscribe call to :infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
w3b6x9 committed Jul 13, 2022
1 parent adb5a03 commit cd882b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/extensions/postgres/postgres_subscription_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Extensions.Postgres.SubscriptionManager do
@check_oids_interval 60_000
@queue_target 5_000
@pool_size 5
@timeout 60_000
@timeout 15_000

def start_link(opts) do
GenServer.start_link(__MODULE__, opts)
Expand Down Expand Up @@ -79,7 +79,7 @@ defmodule Extensions.Postgres.SubscriptionManager do

@spec subscribe(pid, map) :: {:ok, nil} | {:error, any()}
def subscribe(pid, opts) do
GenServer.call(pid, {:subscribe, opts}, @timeout)
GenServer.call(pid, {:subscribe, opts}, :infinity)
end

def subscribers_list(pid) do
Expand Down

0 comments on commit cd882b1

Please sign in to comment.