fix: do not panic on alphas (#8406)

alphas are used sometimes as stable release
This commit is contained in:
Ahmed Ibrahim 2025-12-21 16:20:53 -08:00 committed by GitHub
parent d281bcfcd4
commit aa83d7da24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ pub(crate) fn backoff(attempt: u64) -> Duration {
}
pub(crate) fn error_or_panic(message: impl std::string::ToString) {
if cfg!(debug_assertions) || env!("CARGO_PKG_VERSION").contains("alpha") {
if cfg!(debug_assertions) {
panic!("{}", message.to_string());
} else {
error!("{}", message.to_string());