I hatethis
This commit is contained in:
parent
22f76db215
commit
56d600d74b
|
@ -281,15 +281,15 @@ impl Api {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn circuit_breaker_trip_on_429(&self, e: &Error) {
|
fn circuit_breaker_trip_on_429(&self, e: &Error) {
|
||||||
if let Error::ApiError {
|
if let Error::ApiError {
|
||||||
status: reqwest::StatusCode::TOO_MANY_REQUESTS,
|
status: reqwest::StatusCode::TOO_MANY_REQUESTS,
|
||||||
info: ref _info,
|
info: ref _info,
|
||||||
} = e
|
} = e
|
||||||
{
|
{
|
||||||
tracing::info!("Disabling GitHub Actions Cache due to 429: Too Many Requests");
|
tracing::info!("Disabling GitHub Actions Cache due to 429: Too Many Requests");
|
||||||
self.circuit_breaker_429_tripped
|
self.circuit_breaker_429_tripped
|
||||||
.store(true, Ordering::Relaxed);
|
.store(true, Ordering::Relaxed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Mutates the cache version/namespace.
|
/// Mutates the cache version/namespace.
|
||||||
|
|
Loading…
Reference in a new issue