stuff
This commit is contained in:
parent
85b5c2be89
commit
8b17e93d74
4 changed files with 24 additions and 21 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue