mirror of
https://github.com/mikedilger/chorus.git
synced 2026-04-03 06:41:16 +00:00
Be a bit less harsh about errors
This commit is contained in:
parent
59643c1b06
commit
974beabcee
@ -226,7 +226,7 @@ impl ChorusError {
|
|||||||
ChorusError::AuthFailure(_) => 0.25,
|
ChorusError::AuthFailure(_) => 0.25,
|
||||||
ChorusError::AuthRequired => 0.0,
|
ChorusError::AuthRequired => 0.0,
|
||||||
ChorusError::BadEventId => 0.1,
|
ChorusError::BadEventId => 0.1,
|
||||||
ChorusError::BadHexInput => 0.5,
|
ChorusError::BadHexInput => 0.4,
|
||||||
ChorusError::BufferTooSmall => 0.0,
|
ChorusError::BufferTooSmall => 0.0,
|
||||||
ChorusError::ChannelRecv(_) => 0.0,
|
ChorusError::ChannelRecv(_) => 0.0,
|
||||||
ChorusError::ChannelSend(_) => 0.0,
|
ChorusError::ChannelSend(_) => 0.0,
|
||||||
@ -234,7 +234,7 @@ impl ChorusError {
|
|||||||
ChorusError::Crypto(_) => 0.1,
|
ChorusError::Crypto(_) => 0.1,
|
||||||
ChorusError::Deleted => 0.1,
|
ChorusError::Deleted => 0.1,
|
||||||
ChorusError::Duplicate => 0.01,
|
ChorusError::Duplicate => 0.01,
|
||||||
ChorusError::EndOfInput => 0.5,
|
ChorusError::EndOfInput => 0.4,
|
||||||
ChorusError::ErrorClose => 1.0,
|
ChorusError::ErrorClose => 1.0,
|
||||||
ChorusError::EventIsInvalid(_) => 0.2,
|
ChorusError::EventIsInvalid(_) => 0.2,
|
||||||
ChorusError::Http(_) => 0.0,
|
ChorusError::Http(_) => 0.0,
|
||||||
@ -255,7 +255,7 @@ impl ChorusError {
|
|||||||
ChorusError::Rustls(_) => 0.0,
|
ChorusError::Rustls(_) => 0.0,
|
||||||
ChorusError::TimedOut => 0.1,
|
ChorusError::TimedOut => 0.1,
|
||||||
ChorusError::Tungstenite(_) => 0.0,
|
ChorusError::Tungstenite(_) => 0.0,
|
||||||
ChorusError::Scraper => 1.0,
|
ChorusError::Scraper => 0.4,
|
||||||
ChorusError::Speedy(_) => 0.0,
|
ChorusError::Speedy(_) => 0.0,
|
||||||
ChorusError::TooManySubscriptions => 0.1,
|
ChorusError::TooManySubscriptions => 0.1,
|
||||||
ChorusError::UrlParse(_) => 0.1,
|
ChorusError::UrlParse(_) => 0.1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user