Retry request from reverseproxy retry options

This commit is contained in:
euzu
2026-01-22 13:30:59 +01:00
parent 7dbd94792d
commit ccdbf1dfce
25 changed files with 414 additions and 369 deletions
+4 -5
View File
@@ -1,5 +1,6 @@
use std::error::Error;
use std::fmt::{Display, Formatter, Result};
use crate::utils::sanitize_sensitive_info;
#[macro_export]
macro_rules! get_errors_notify_message {
@@ -94,10 +95,8 @@ macro_rules! handle_tuliprox_error_result {
}
}
}
pub use handle_tuliprox_error_result;
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum TuliproxErrorKind {
// do not send with messaging
@@ -128,12 +127,12 @@ impl Error for TuliproxError {}
pub fn to_io_error<E>(err: E) -> std::io::Error
where
E: std::error::Error,
{ std::io::Error::other(err.to_string()) }
{ std::io::Error::other(sanitize_sensitive_info(&err.to_string())) }
pub fn str_to_io_error(err: &str) -> std::io::Error {
std::io::Error::other(err.to_string())
std::io::Error::other(sanitize_sensitive_info(err))
}
pub fn string_to_io_error(err: String) -> std::io::Error {
std::io::Error::other(err)
std::io::Error::other(sanitize_sensitive_info(&err))
}