breaker: remover useless code (#114)

This commit is contained in:
刘青
2020-10-04 16:25:26 +08:00
committed by GitHub
parent f90c0aa98e
commit e66cca3710
3 changed files with 0 additions and 16 deletions

View File

@@ -13,11 +13,6 @@ import (
"github.com/tal-tech/go-zero/core/timex"
)
const (
StateClosed State = iota
StateOpen
)
const (
numHistoryReasons = 5
timeFormat = "15:04:05"
@@ -27,7 +22,6 @@ const (
var ErrServiceUnavailable = errors.New("circuit breaker is open")
type (
State = int32
Acceptable func(err error) bool
Breaker interface {