mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-20 06:28:13 +00:00
November improvements. (#29)
* Tackling the CPU / memory spikes after some time. * Update admin dashboard, fix the circuit breaker and request coalescing.
This commit is contained in:
@@ -170,9 +170,11 @@ func apiCircuitBreakerHealth(c *fiber.Ctx) error {
|
||||
})
|
||||
}
|
||||
|
||||
// Get circuit breaker state
|
||||
// Get circuit breaker state with proper mutex protection
|
||||
cbMutex.RLock()
|
||||
state := cb.State()
|
||||
counts := cb.Counts()
|
||||
cbMutex.RUnlock()
|
||||
|
||||
// Determine health status
|
||||
var status string
|
||||
|
||||
Reference in New Issue
Block a user