Skip to content

Commit 9ddcabf

Browse files
author
HC Zhu
committed
Fix lint errors
Signed-off-by: HC Zhu <hczhu.mtv@gmail.com>
1 parent 0cb4ffa commit 9ddcabf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/store/proxy_merge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ type ringBuffer struct {
230230
closed bool
231231
}
232232

233-
// NB: A call site of any method of ringBuffer must hold the mtx lock
233+
// NB: A call site of any method of ringBuffer must hold the mtx lock.
234234
func newRingBuffer(fixedBufferSize int, mtx *sync.Mutex) *ringBuffer {
235235
return &ringBuffer{
236236
bufferedResponses: make([]*storepb.SeriesResponse, fixedBufferSize+1),

pkg/store/proxy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,13 +1280,13 @@ func TestProxyStore_SeriesSlowStores(t *testing.T) {
12801280
{
12811281
lset: labels.FromStrings("a", "b"),
12821282
chunks: [][]sample{
1283-
[]sample{{1, 1}, {2, 2}, {3, 3}},
1283+
{{1, 1}, {2, 2}, {3, 3}},
12841284
},
12851285
},
12861286
{
12871287
lset: labels.FromStrings("b", "c"),
12881288
chunks: [][]sample{
1289-
[]sample{{1, 1}, {2, 2}, {3, 3}},
1289+
{{1, 1}, {2, 2}, {3, 3}},
12901290
},
12911291
},
12921292
},

0 commit comments

Comments
 (0)