use default child_specs
This commit is contained in:
parent
4a5b0965a0
commit
51bdf0cab6
13 changed files with 73 additions and 143 deletions
|
|
@ -7,7 +7,9 @@ defmodule Pleroma.Stats do
|
|||
alias Pleroma.Repo
|
||||
alias Pleroma.User
|
||||
|
||||
def start_link do
|
||||
use Agent
|
||||
|
||||
def start_link(_) do
|
||||
agent = Agent.start_link(fn -> {[], %{}} end, name: __MODULE__)
|
||||
spawn(fn -> schedule_update() end)
|
||||
agent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue