mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-11-30 04:00:49 +01:00
make sync, switch to ureq
This commit is contained in:
parent
bdf01dced0
commit
ae1ef0657a
7 changed files with 603 additions and 948 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use reqwest::StatusCode;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use thiserror::Error;
|
||||
use ureq::http::StatusCode;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum ParseFeedError {
|
||||
|
|
@ -16,7 +16,7 @@ pub enum ParseFeedError {
|
|||
#[derive(Debug, Error)]
|
||||
pub enum FetchFeedError {
|
||||
#[error("Error while fetching feed: {0:#}")]
|
||||
Network(#[from] reqwest::Error),
|
||||
Network(#[from] ureq::Error),
|
||||
#[error("Error while parsing feed: {0:#}")]
|
||||
Parse(#[from] ParseFeedError),
|
||||
#[error("Docker hub returned a server error {0}")]
|
||||
|
|
@ -42,7 +42,7 @@ pub enum ConfigError {
|
|||
#[derive(Debug, Error)]
|
||||
pub enum HubError {
|
||||
#[error("Error while fetching docker hub info: {0:#}")]
|
||||
Network(#[from] reqwest::Error),
|
||||
Network(#[from] ureq::Error),
|
||||
#[error("Error while parsing hub response: {0:#}")]
|
||||
Parse(#[from] serde_json::Error),
|
||||
#[error("Docker hub returned a server error {0}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue