podcasts/podcasts-data/src
Jordan Petridis b40c12efbd
Pipeline: Avoid spamming stderr when not needed
This commit add a new DataError Variant for feeds that return 304.
Its expected behaviror and the current API of Source::into_feed
is kinda limiting the return type to make it easier to handle.

Up till now 304 was returning an Error to early return. Ideally
Source::into_feed will return a Multi variant Result Enum.

example:

enum FeedResult {
    Ok(Success(feed)),
    Ok(NotModified),
    Err(err),
}

Hopefully in a refactor in the near Future™

Till then we will just have to match and ignore
DataError::FeedNotModified.
2018-09-08 20:17:47 +03:00
..
models Pipeline: Avoid spamming stderr when not needed 2018-09-08 20:17:47 +03:00
database.rs Refactor the tests to use ? operator 2018-08-18 17:02:31 +03:00
dbqueries.rs Refactor the tests to use ? operator 2018-08-18 17:02:31 +03:00
errors.rs Pipeline: Avoid spamming stderr when not needed 2018-09-08 20:17:47 +03:00
feed.rs Feed: Remove another unnecessary wrapper 2018-09-08 20:17:45 +03:00
lib.rs Pipeline: Use a custom tokio threadpool 2018-09-08 20:17:46 +03:00
opml.rs Refactor the tests to use ? operator 2018-08-18 17:02:31 +03:00
parser.rs Initial massive renaming. 2018-07-25 03:26:35 +03:00
pipeline.rs Pipeline: Avoid spamming stderr when not needed 2018-09-08 20:17:47 +03:00
schema.patch Initial massive renaming. 2018-07-25 03:26:35 +03:00
schema.rs Initial massive renaming. 2018-07-25 03:26:35 +03:00
utils.rs Refactor the tests to use ? operator 2018-08-18 17:02:31 +03:00