From 9855ae563f1d2f5f30d2f067becc84bb135ace6b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 6 Jun 2024 23:16:12 -0700 Subject: [PATCH] Fix using feed instead of feed id when retrying update --- lib/frenzy/update_feeds.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/frenzy/update_feeds.ex b/lib/frenzy/update_feeds.ex index 2db7f9d..108f662 100644 --- a/lib/frenzy/update_feeds.ex +++ b/lib/frenzy/update_feeds.ex @@ -155,7 +155,7 @@ defmodule Frenzy.UpdateFeeds do if retry_count < 5 do Process.send_after( self(), - {:update_feed, feed, retry_count + 1}, + {:update_feed, feed.id, retry_count + 1}, trunc(:math.pow(4, retry_count)) * 1000 ) else @@ -179,7 +179,7 @@ defmodule Frenzy.UpdateFeeds do if retry_count < 5 do Process.send_after( self(), - {:update_feed, feed, retry_count + 1}, + {:update_feed, feed.id, retry_count + 1}, trunc(:math.pow(4, retry_count)) * 1000 ) else