Fix using feed instead of feed id when retrying update
This commit is contained in:
parent
71203435d6
commit
9855ae563f
|
@ -155,7 +155,7 @@ defmodule Frenzy.UpdateFeeds do
|
||||||
if retry_count < 5 do
|
if retry_count < 5 do
|
||||||
Process.send_after(
|
Process.send_after(
|
||||||
self(),
|
self(),
|
||||||
{:update_feed, feed, retry_count + 1},
|
{:update_feed, feed.id, retry_count + 1},
|
||||||
trunc(:math.pow(4, retry_count)) * 1000
|
trunc(:math.pow(4, retry_count)) * 1000
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
@ -179,7 +179,7 @@ defmodule Frenzy.UpdateFeeds do
|
||||||
if retry_count < 5 do
|
if retry_count < 5 do
|
||||||
Process.send_after(
|
Process.send_after(
|
||||||
self(),
|
self(),
|
||||||
{:update_feed, feed, retry_count + 1},
|
{:update_feed, feed.id, retry_count + 1},
|
||||||
trunc(:math.pow(4, retry_count)) * 1000
|
trunc(:math.pow(4, retry_count)) * 1000
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue