feat: support breaker with sql statements (#3936)

This commit is contained in:
Kevin Wan
2024-02-25 11:24:44 +08:00
committed by GitHub
parent 914bcdcf2b
commit 0dfaf135dd
8 changed files with 177 additions and 114 deletions

View File

@@ -59,7 +59,7 @@ func GetBreaker(name string) Breaker {
// NoBreakerFor disables the circuit breaker for the given name.
func NoBreakerFor(name string) {
lock.Lock()
breakers[name] = newNopBreaker()
breakers[name] = NopBreaker()
lock.Unlock()
}