yammer / circuitbox

Circuit breaker built with large Ruby apps in mind.
Other
704 stars 59 forks source link

When circuitbox::MemoryStore is used, circuits use the monotonic system clock #193

Closed matthewshafer closed 1 year ago

matthewshafer commented 1 year ago

Add monotonic and real time helpers allowing circuit breakers to utilize the monotonic system clock when using circuitbox's memory store

Unified the monotonic helper across Circuitbox::MemoryStore and Circuitbox::CircuitBreaker. Monotonic time helper is only used when the circuit_store is a Circuitbox::MemoryStore, all other stores use the Real (Time.now.to_i) time helper.