vendor/metrics: fix unaligned 64-bit atomic operation panic on 32-bit arch

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2023-12-22 16:02:35 +01:00
parent 8ba483eca3
commit 34b69dcf58
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640
3 changed files with 5 additions and 5 deletions

2
go.mod
View file

@ -11,7 +11,7 @@ require (
// Do not use the original github.com/valyala/fasthttp because of issues
// like https://github.com/valyala/fasthttp/commit/996610f021ff45fdc98c2ce7884d5fa4e7f9199b
github.com/VictoriaMetrics/fasthttp v1.2.0
github.com/VictoriaMetrics/metrics v1.29.0
github.com/VictoriaMetrics/metrics v1.29.1
github.com/VictoriaMetrics/metricsql v0.70.0
github.com/aws/aws-sdk-go-v2 v1.24.0
github.com/aws/aws-sdk-go-v2/config v1.26.1

View file

@ -28,11 +28,11 @@ func NewGauge(name string, f func() float64) *Gauge {
// Gauge is a float64 gauge.
type Gauge struct {
// f is a callback, which is called for returning the gauge value.
f func() float64
// valueBits contains uint64 representation of float64 passed to Gauge.Set.
valueBits uint64
// f is a callback, which is called for returning the gauge value.
f func() float64
}
// Get returns the current value for g.

2
vendor/modules.txt vendored
View file

@ -97,7 +97,7 @@ github.com/VictoriaMetrics/fastcache
github.com/VictoriaMetrics/fasthttp
github.com/VictoriaMetrics/fasthttp/fasthttputil
github.com/VictoriaMetrics/fasthttp/stackless
# github.com/VictoriaMetrics/metrics v1.29.0
# github.com/VictoriaMetrics/metrics v1.29.1
## explicit; go 1.17
github.com/VictoriaMetrics/metrics
# github.com/VictoriaMetrics/metricsql v0.70.0