mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix linter errors in Grafana additions
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
caac4d5071
commit
87c727e957
|
@ -552,10 +552,10 @@ func randomChunk(t *testing.T) chunkenc.Chunk {
|
||||||
|
|
||||||
func randomUnsupportedChunk(t *testing.T) chunkenc.Chunk {
|
func randomUnsupportedChunk(t *testing.T) chunkenc.Chunk {
|
||||||
chunk := newUnsupportedChunk()
|
chunk := newUnsupportedChunk()
|
||||||
len := rand.Int() % 120
|
length := rand.Int() % 120
|
||||||
app, err := chunk.Appender()
|
app, err := chunk.Appender()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
for i := 0; i < len; i++ {
|
for i := 0; i < length; i++ {
|
||||||
app.Append(rand.Int63(), rand.Float64())
|
app.Append(rand.Int63(), rand.Float64())
|
||||||
}
|
}
|
||||||
return chunk
|
return chunk
|
||||||
|
|
|
@ -261,11 +261,11 @@ func TestPostingsForMatchersCache(t *testing.T) {
|
||||||
|
|
||||||
type indexForPostingsMock struct{}
|
type indexForPostingsMock struct{}
|
||||||
|
|
||||||
func (idx indexForPostingsMock) LabelValues(name string, matchers ...*labels.Matcher) ([]string, error) {
|
func (idx indexForPostingsMock) LabelValues(string, ...*labels.Matcher) ([]string, error) {
|
||||||
panic("implement me")
|
panic("implement me")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (idx indexForPostingsMock) Postings(name string, values ...string) (index.Postings, error) {
|
func (idx indexForPostingsMock) Postings(string, ...string) (index.Postings, error) {
|
||||||
panic("implement me")
|
panic("implement me")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ func (f *symbolFlushers) loop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for range f.jobs {
|
for range f.jobs { //nolint:revive // This "empty" block is intentional
|
||||||
// drain the channel, don't do more flushing. only used when error occurs.
|
// drain the channel, don't do more flushing. only used when error occurs.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue