Some tweaks

This commit is contained in:
Greg Shuflin 2025-02-04 15:07:46 -08:00
parent 6d58a7d70e
commit 2fd1ade3ee
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ use url::Url;
pub struct FeedError;
pub async fn fetch_feed(url: &Url) -> Result<feed_rs::model::Feed, FeedError> {
println!("Making a request to fetch feed `{url}`");
// Fetch the feed content
let response = reqwest::get(url.as_ref()).await.map_err(|e| {
eprintln!("Failed to fetch feed: {}", e);

View File

@ -141,7 +141,7 @@ pub async fn poll_feed(
})
.collect();
update_entry_db(&entries, &feed_id, &mut **db).await?;
update_entry_db(&entries, &feed_id, &mut db).await?;
Ok(Json(FeedPollResponse { count, entries }))
}