This commit is contained in:
Thomas Koch 2025-01-11 13:45:03 +02:00
parent 85b5c2be89
commit 8b17e93d74
4 changed files with 24 additions and 21 deletions

View file

@ -41,7 +41,7 @@ impl FeedStore {
format!("{}.toml", self.feed_path(url))
}
pub fn get_fetchdata(&self, url: &Url) -> FetchData {
pub fn load_fetchdata(&self, url: &Url) -> FetchData {
let path = self.fetchdata_path(url);
if !fs::exists(path.clone()).unwrap() {
return FetchData::default();

View file

@ -32,7 +32,7 @@ impl Fetcher {
}
pub fn fetch(&self, url: Url, feed_store: &FeedStore) -> bool {
let fetchdata = feed_store.get_fetchdata(&url);
let fetchdata = feed_store.load_fetchdata(&url);
let mut builder = self
.agent
.get(url.to_string())