mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-07 11:28:48 +03:00
Fix for #1788. Rearrange struct fields.
This commit is contained in:
parent
36d8d2c7de
commit
dd3f460cf8
1 changed files with 4 additions and 1 deletions
|
@ -366,8 +366,11 @@ type balancer interface {
|
||||||
|
|
||||||
// roundRobin is a round robin balancer for fastcgi upstreams.
|
// roundRobin is a round robin balancer for fastcgi upstreams.
|
||||||
type roundRobin struct {
|
type roundRobin struct {
|
||||||
addresses []string
|
// Known Go bug: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
|
||||||
|
// must be first field for 64 bit alignment
|
||||||
|
// on x86 and arm.
|
||||||
index int64
|
index int64
|
||||||
|
addresses []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *roundRobin) Address() string {
|
func (r *roundRobin) Address() string {
|
||||||
|
|
Loading…
Reference in a new issue