use default child_specs

This commit is contained in:
stwf 2019-08-14 11:55:17 -04:00
commit 51bdf0cab6
13 changed files with 73 additions and 143 deletions

View file

@ -33,9 +33,11 @@ defmodule Pleroma.Web.ChatChannel do
end
defmodule Pleroma.Web.ChatChannel.ChatChannelState do
use Agent
@max_messages 20
def start_link do
def start_link(_) do
Agent.start_link(fn -> %{max_id: 1, messages: []} end, name: __MODULE__)
end