app/vmagent/remotewrite: go fmt after 2b55d167d7

This commit is contained in:
Aliaksandr Valialkin 2022-09-19 15:13:43 +03:00
parent 7437d3c48f
commit 336007182c
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1
2 changed files with 5 additions and 5 deletions

View File

@ -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),
},
},
})

View File

@ -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) {