Don't update feeds when starting GenServer
This commit is contained in:
parent
fd42f20920
commit
71203435d6
|
@ -14,8 +14,7 @@ defmodule Frenzy.UpdateFeeds do
|
||||||
end
|
end
|
||||||
|
|
||||||
def init(state) do
|
def init(state) do
|
||||||
update_feeds()
|
Process.send_after(self(), :update_feeds, 5 * 1000)
|
||||||
schedule_update()
|
|
||||||
{:ok, state}
|
{:ok, state}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue