Skip to content

Commit

Permalink
fix: don't timeout when calling functions on the runtime (#196)
Browse files Browse the repository at this point in the history
Found by a user whose project takes > 5 seconds for Credo to run
  • Loading branch information
mhanberg committed Aug 21, 2023
1 parent 2652634 commit 555b191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/next_ls/runtime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule NextLS.Runtime do
@type mod_fun_arg :: {atom(), atom(), list()}

@spec call(pid(), mod_fun_arg()) :: any()
def call(server, mfa), do: GenServer.call(server, {:call, mfa})
def call(server, mfa), do: GenServer.call(server, {:call, mfa}, :infinity)

@spec ready?(pid()) :: boolean()
def ready?(server), do: GenServer.call(server, :ready?)
Expand Down

0 comments on commit 555b191

Please sign in to comment.