metrics: 64bit fields should come first in structs

https://golang.org/pkg/sync/atomic/#pkg-note-BUG
This commit is contained in:
bergquist 2016-12-06 09:08:03 +01:00
parent 21353f4ba5
commit 8f1ed07275

View File

@ -32,8 +32,8 @@ func RegGauge(name string, tagStrings ...string) Gauge {
// GaugeSnapshot is a read-only copy of another Gauge. // GaugeSnapshot is a read-only copy of another Gauge.
type GaugeSnapshot struct { type GaugeSnapshot struct {
*MetricMeta
value int64 value int64
*MetricMeta
} }
// Snapshot returns the snapshot. // Snapshot returns the snapshot.