Browse Source

metrics: 64bit fields should come first in structs

https://golang.org/pkg/sync/atomic/#pkg-note-BUG
bergquist 9 years ago
parent
commit
8f1ed07275
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/metrics/gauge.go

+ 1 - 1
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.