mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/forward: fix alignment for sync.Atomic (#1855)
These must be alligned on 8 bytes, in Go this means putting them first in the struct (AFAICT).
This commit is contained in:
@@ -13,6 +13,9 @@ import (
|
||||
|
||||
// Proxy defines an upstream host.
|
||||
type Proxy struct {
|
||||
avgRtt int64
|
||||
fails uint32
|
||||
|
||||
addr string
|
||||
client *dns.Client
|
||||
|
||||
@@ -22,9 +25,6 @@ type Proxy struct {
|
||||
|
||||
// health checking
|
||||
probe *up.Probe
|
||||
fails uint32
|
||||
|
||||
avgRtt int64
|
||||
}
|
||||
|
||||
// NewProxy returns a new proxy.
|
||||
|
||||
Reference in New Issue
Block a user