Fix using feed instead of feed id when retrying update

This commit is contained in:
Shadowfacts 2024-06-06 23:16:12 -07:00
parent 71203435d6
commit 9855ae563f
1 changed files with 2 additions and 2 deletions

View File

@ -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