Skip to content

Commit

Permalink
Merge branch 'release/2.6.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Nov 28, 2024
2 parents e735225 + 3d3565a commit ab631d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/lexdee/observer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ defmodule Lexdee.Observer do
GenServer.call(pid, :connect)
end

def connect(supervisor, pid) when is_pid(pid) do
def connect(supervisor, pid, timeout \\ 30_000) when is_pid(pid) do
node = which_node(pid)

{supervisor, node}
|> Task.Supervisor.async_nolink(fn ->
GenServer.call(pid, :connect)
GenServer.call(pid, :connect, timeout + 5_000)
end)
|> Task.await()
|> Task.await(timeout + 10_000)
end

def start_link(options) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Lexdee.MixProject do
def project do
[
app: :lexdee,
version: "2.6.1",
version: "2.6.2",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit ab631d7

Please sign in to comment.