Skip to content

Commit 2074adb

Browse files
authored
Merge pull request #44 from abferm/master
Fix issue #43 [Value alignment issue on 32-bit systems (ARM)]
2 parents 9d2405c + 864c7cc commit 2074adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

circuitbreaker.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,11 @@ type Breaker struct {
104104
// Clock is used for controlling time in tests.
105105
Clock clock.Clock
106106

107+
_ [4]byte // pad to fix golang issue #599
107108
consecFailures int64
108-
counts *window
109109
lastFailure int64 // stored as nanoseconds since the Unix epoch
110110
halfOpens int64
111+
counts *window
111112
nextBackOff time.Duration
112113
tripped int32
113114
broken int32

0 commit comments

Comments
 (0)