Pipeline: Fetch sources without etag support fist as they are more likely to need parsing.
This commit is contained in:
parent
332a439b7a
commit
b1c3b4f9cc
@ -16,7 +16,10 @@ pub fn get_sources() -> Result<Vec<Source>> {
|
||||
let db = connection();
|
||||
let con = db.get()?;
|
||||
|
||||
source.load::<Source>(&con).map_err(From::from)
|
||||
source
|
||||
.order((http_etag.asc(), last_modified.asc()))
|
||||
.load::<Source>(&con)
|
||||
.map_err(From::from)
|
||||
}
|
||||
|
||||
pub fn get_podcasts() -> Result<Vec<Podcast>> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user