mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
reduce noise generated by dead homeservers
This commit is contained in:
parent
419af07b97
commit
2da85c96fc
1 changed files with 17 additions and 2 deletions
|
|
@ -286,8 +286,23 @@ impl Service {
|
|||
}))
|
||||
}
|
||||
}
|
||||
Err(_err) => {
|
||||
warn!("Marking transaction as failed");
|
||||
Err(e) => {
|
||||
match e {
|
||||
// 410,757,864,530 DEAD HOMESERVERS
|
||||
//
|
||||
// Just ignore them
|
||||
Error::Reqwest {
|
||||
..
|
||||
} => {}
|
||||
Error::Federation(_, e)
|
||||
if e.status_code.is_server_error()
|
||||
|| e.status_code == 404 => {}
|
||||
|
||||
_ => {
|
||||
warn!("Marking transaction as failed");
|
||||
}
|
||||
}
|
||||
|
||||
current_transaction_status.entry(destination).and_modify(|e| {
|
||||
*e = match e {
|
||||
TransactionStatus::Running => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue