Skip to content

Commit

Permalink
refactor: remove unused state (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg authored Aug 13, 2023
1 parent e77cebd commit 594a7ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/next_ls/runtime/sidecar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ defmodule NextLS.Runtime.Sidecar do
alias NextLS.DB

def start_link(args) do
GenServer.start_link(__MODULE__, Keyword.take(args, [:symbol_table, :db]), Keyword.take(args, [:name]))
GenServer.start_link(__MODULE__, Keyword.drop(args, [:name]), Keyword.take(args, [:name]))
end

def init(args) do
symbol_table = Keyword.fetch!(args, :symbol_table)
db = Keyword.fetch!(args, :db)

{:ok, %{symbol_table: symbol_table, db: db}}
{:ok, %{db: db}}
end

def handle_info({:tracer, payload}, state) do
Expand Down

0 comments on commit 594a7ed

Please sign in to comment.