Skip to content

Commit

Permalink
Merge pull request #44 from abferm/master
Browse files Browse the repository at this point in the history
Fix issue #43 [Value alignment issue on 32-bit systems (ARM)]
  • Loading branch information
rubyist committed Mar 30, 2017
2 parents 9d2405c + 864c7cc commit 2074adb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion circuitbreaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ type Breaker struct {
// Clock is used for controlling time in tests.
Clock clock.Clock

_ [4]byte // pad to fix golang issue #599
consecFailures int64
counts *window
lastFailure int64 // stored as nanoseconds since the Unix epoch
halfOpens int64
counts *window
nextBackOff time.Duration
tripped int32
broken int32
Expand Down

0 comments on commit 2074adb

Please sign in to comment.