Skip to content

Commit

Permalink
fix: set db timeouts to :infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Aug 11, 2023
1 parent fd67e4c commit 9dbbcba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/next_ls/db.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ defmodule NextLS.DB do
end

@spec query(pid(), query(), list()) :: list()
def query(server, query, args \\ []), do: GenServer.call(server, {:query, query, args})
def query(server, query, args \\ []), do: GenServer.call(server, {:query, query, args}, :infinity)

@spec symbols(pid()) :: list(map())
def symbols(server), do: GenServer.call(server, :symbols)
def symbols(server), do: GenServer.call(server, :symbols, :infinity)

@spec insert_symbol(pid(), map()) :: :ok
def insert_symbol(server, payload), do: GenServer.cast(server, {:insert_symbol, payload})
Expand Down

0 comments on commit 9dbbcba

Please sign in to comment.