Skip to content

Commit be7eddd

Browse files
committed
Use cast instead of call for destroy_session
1 parent af21f0f commit be7eddd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/hound/session_server.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule Hound.SessionServer do
5050

5151

5252
def destroy_sessions_for_pid(pid) do
53-
GenServer.call(@name, {:destroy_sessions, pid}, 60000)
53+
GenServer.cast(@name, {:destroy_sessions, pid})
5454
end
5555

5656
## Callbacks
@@ -87,9 +87,9 @@ defmodule Hound.SessionServer do
8787
error -> {:reply, {:error, error}, state}
8888
end
8989

90-
def handle_call({:destroy_sessions, pid}, _from, state) do
90+
def handle_cast({:destroy_sessions, pid}, state) do
9191
destroy_sessions(pid)
92-
{:reply, :ok, state}
92+
{:noreply, state}
9393
end
9494

9595
def handle_info({:DOWN, ref, _, _, _}, state) do

0 commit comments

Comments
 (0)