Skip to content

Commit

Permalink
refine imports
Browse files Browse the repository at this point in the history
  • Loading branch information
louyuting committed Oct 11, 2020
1 parent 0b51481 commit 6d3c9a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions core/circuitbreaker/circuit_breaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package circuitbreaker
import (
"sync/atomic"

"github.com/pkg/errors"

"github.com/alibaba/sentinel-golang/core/base"
sbase "github.com/alibaba/sentinel-golang/core/stat/base"
"github.com/alibaba/sentinel-golang/logging"
"github.com/alibaba/sentinel-golang/util"
"github.com/pkg/errors"
)

//
Expand Down Expand Up @@ -58,7 +57,7 @@ func (s *State) get() State {
}

func (s *State) set(update State) {
atomic.StoreInt32((*int32)(s), (int32)(update))
atomic.StoreInt32((*int32)(s), int32(update))
}

func (s *State) cas(expect State, update State) bool {
Expand Down
3 changes: 1 addition & 2 deletions core/circuitbreaker/rule_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import (
"reflect"
"sync"

"github.com/pkg/errors"

"github.com/alibaba/sentinel-golang/logging"
"github.com/alibaba/sentinel-golang/util"
"github.com/pkg/errors"
)

type CircuitBreakerGenFunc func(r *Rule, reuseStat interface{}) (CircuitBreaker, error)
Expand Down

0 comments on commit 6d3c9a4

Please sign in to comment.