From 8f1ed0727553d280753bf48ba620a36a3a905307 Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 6 Dec 2016 09:08:03 +0100 Subject: [PATCH] metrics: 64bit fields should come first in structs https://golang.org/pkg/sync/atomic/#pkg-note-BUG --- pkg/metrics/gauge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/metrics/gauge.go b/pkg/metrics/gauge.go index cdae5ccff26..cca32da5622 100644 --- a/pkg/metrics/gauge.go +++ b/pkg/metrics/gauge.go @@ -32,8 +32,8 @@ func RegGauge(name string, tagStrings ...string) Gauge { // GaugeSnapshot is a read-only copy of another Gauge. type GaugeSnapshot struct { - *MetricMeta value int64 + *MetricMeta } // Snapshot returns the snapshot.