Minor formatting issues

This commit is contained in:
9seconds
2021-03-11 21:50:47 +03:00
parent 5c4536c591
commit c0ab254acf
13 changed files with 16 additions and 50 deletions
-2
View File
@@ -125,7 +125,6 @@ func (c *circuitBreakerDialer) switchState(state uint32) {
}
c.failuresCount = 0
atomic.StoreUint32(&c.halfOpenAttempts, 0)
atomic.StoreUint32(&c.state, state)
}
@@ -158,7 +157,6 @@ func (c *circuitBreakerDialer) tryHalfOpen() {
func (c *circuitBreakerDialer) stopTimer(timerRef **time.Timer) {
timer := *timerRef
if timer == nil {
return
}