Disable issue URLs on all timeouts (#1470)
This change helps prevent spurious bug reports.
This commit is contained in:
parent
81d19ca196
commit
16ffb1dbbf
|
|
@ -162,6 +162,8 @@ impl Application for ZebradApp {
|
||||||
color_eyre::ErrorKind::NonRecoverable(_) => true,
|
color_eyre::ErrorKind::NonRecoverable(_) => true,
|
||||||
color_eyre::ErrorKind::Recoverable(error) => {
|
color_eyre::ErrorKind::Recoverable(error) => {
|
||||||
!error.is::<tower::timeout::error::Elapsed>()
|
!error.is::<tower::timeout::error::Elapsed>()
|
||||||
|
&& !error.is::<tokio::time::error::Elapsed>()
|
||||||
|
&& !error.to_string().contains("timed out")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.install()
|
.install()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue