Commit 751a08d6 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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).
parent ec334014
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment