diff --git a/gha-cache/src/api.rs b/gha-cache/src/api.rs
index 31e1508..a3b3a6f 100644
--- a/gha-cache/src/api.rs
+++ b/gha-cache/src/api.rs
@@ -334,7 +334,7 @@ impl Api {
where
S: AsyncRead + Unpin + Send,
{
- if self.circuit_breaker_429_tripped.load(Ordering::Relaxed) {
+ if self.circuit_breaker_tripped() {
return Err(Error::CircuitBreakerTripped);
}
@@ -422,7 +422,7 @@ impl Api {
/// Downloads a file based on a list of key prefixes.
pub async fn get_file_url(&self, keys: &[&str]) -> Result