Skip to content

Commit 8f1ed07

Browse files
committed
metrics: 64bit fields should come first in structs
https://golang.org/pkg/sync/atomic/#pkg-note-BUG
1 parent 21353f4 commit 8f1ed07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/metrics/gauge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func RegGauge(name string, tagStrings ...string) Gauge {
3232

3333
// GaugeSnapshot is a read-only copy of another Gauge.
3434
type GaugeSnapshot struct {
35-
*MetricMeta
3635
value int64
36+
*MetricMeta
3737
}
3838

3939
// Snapshot returns the snapshot.

0 commit comments

Comments
 (0)