From 336007182cd47f55382d5b51532fa1aca36d15de Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 19 Sep 2022 15:13:43 +0300 Subject: [PATCH] app/vmagent/remotewrite: `go fmt` after 2b55d167d787667017f6acf83bc3607aba7916db --- app/vmagent/remotewrite/pendingseries_test.go | 8 ++++---- app/vmagent/remotewrite/pendingseries_timing_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/vmagent/remotewrite/pendingseries_test.go b/app/vmagent/remotewrite/pendingseries_test.go index 74900a13b1..be99ea9a8a 100644 --- a/app/vmagent/remotewrite/pendingseries_test.go +++ b/app/vmagent/remotewrite/pendingseries_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/golang/snappy" "github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal" + "github.com/golang/snappy" ) func TestPushWriteRequest(t *testing.T) { @@ -44,7 +44,7 @@ func newTestWriteRequest(seriesCount, labelsCount int) *prompbmarshal.WriteReque var labels []prompbmarshal.Label for j := 0; j < labelsCount; j++ { labels = append(labels, prompbmarshal.Label{ - Name: fmt.Sprintf("label_%d_%d", i, j), + Name: fmt.Sprintf("label_%d_%d", i, j), Value: fmt.Sprintf("value_%d_%d", i, j), }) } @@ -52,8 +52,8 @@ func newTestWriteRequest(seriesCount, labelsCount int) *prompbmarshal.WriteReque Labels: labels, Samples: []prompbmarshal.Sample{ { - Value: float64(i), - Timestamp: 1000*int64(i), + Value: float64(i), + Timestamp: 1000 * int64(i), }, }, }) diff --git a/app/vmagent/remotewrite/pendingseries_timing_test.go b/app/vmagent/remotewrite/pendingseries_timing_test.go index 72bfcb1ff3..8fbd4224f8 100644 --- a/app/vmagent/remotewrite/pendingseries_timing_test.go +++ b/app/vmagent/remotewrite/pendingseries_timing_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" + "github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal" "github.com/golang/snappy" "github.com/klauspost/compress/s2" - "github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal" ) func BenchmarkCompressWriteRequestSnappy(b *testing.B) {