Collect stats immediately after init
This commit is contained in:
parent
31d576de0c
commit
e8a8d50138
|
@ -32,7 +32,7 @@ def get_peers do
|
||||||
end
|
end
|
||||||
|
|
||||||
def init(args) do
|
def init(args) do
|
||||||
Process.send_after(self(), :run_update, @interval)
|
Process.send(self(), :run_update, [])
|
||||||
{:ok, args}
|
{:ok, args}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue