sony / gobreaker

Circuit Breaker implemented in Go
MIT License
2.88k stars 179 forks source link

is circuit breaker threadsafe? #55

Open madyar997 opened 9 months ago

madyar997 commented 9 months ago

Do I need to use a mutex when calling cb.Execute from multiple goroutines? as it seems, counts won't be calculated correctly and need to be synchronized

GingerMoon commented 9 months ago

“ gobreaker is goroutine-safe. You can run gobreaker in parallel.“ reference: https://github.com/sony/gobreaker/issues/27