@@ -121,13 +121,9 @@ func TestTokenizerPopulate(t *testing.T) {
121
121
bloom := Bloom {
122
122
ScalableBloomFilter : * sbf ,
123
123
}
124
- series := Series {
125
- Fingerprint : model .Fingerprint (lbsList [0 ].Hash ()),
126
- }
127
124
128
125
blooms , err := populateAndConsumeBloom (
129
126
bt ,
130
- series ,
131
127
NewSliceIter ([]* Bloom {& bloom }),
132
128
NewSliceIter ([]ChunkRefWithIter {{Ref : ChunkRef {},
133
129
Itr : itr }}),
@@ -164,13 +160,8 @@ func TestBloomTokenizerPopulateWithoutPreexistingBloom(t *testing.T) {
164
160
)
165
161
require .Nil (t , err )
166
162
167
- series := Series {
168
- Fingerprint : model .Fingerprint (lbsList [0 ].Hash ()),
169
- }
170
-
171
163
blooms , err := populateAndConsumeBloom (
172
164
bt ,
173
- series ,
174
165
NewEmptyIter [* Bloom ](),
175
166
NewSliceIter ([]ChunkRefWithIter {{Ref : ChunkRef {},
176
167
Itr : itr }}),
@@ -227,11 +218,6 @@ func TestTokenizerPopulateWontExceedMaxSize(t *testing.T) {
227
218
itr , err := chunkRefItrFromLines (line )
228
219
require .NoError (t , err )
229
220
go bt .Populate (
230
- & Series {
231
- Chunks : ChunkRefs {
232
- {},
233
- },
234
- },
235
221
NewSliceIter ([]* Bloom {
236
222
{
237
223
* filter .NewScalableBloomFilter (1024 , 0.01 , 0.8 ),
@@ -258,13 +244,12 @@ func TestTokenizerPopulateWontExceedMaxSize(t *testing.T) {
258
244
259
245
func populateAndConsumeBloom (
260
246
bt * BloomTokenizer ,
261
- s Series ,
262
247
blooms SizedIterator [* Bloom ],
263
248
chks Iterator [ChunkRefWithIter ],
264
249
) (res []* Bloom , err error ) {
265
250
var e multierror.MultiError
266
251
ch := make (chan * BloomCreation )
267
- go bt .Populate (& s , blooms , chks , ch )
252
+ go bt .Populate (blooms , chks , ch )
268
253
for x := range ch {
269
254
if x .Err != nil {
270
255
e = append (e , x .Err )
@@ -301,12 +286,9 @@ func BenchmarkPopulateSeriesWithBloom(b *testing.B) {
301
286
bloom := Bloom {
302
287
ScalableBloomFilter : * sbf ,
303
288
}
304
- series := Series {
305
- Fingerprint : model .Fingerprint (lbsList [0 ].Hash ()),
306
- }
289
+
307
290
_ , err = populateAndConsumeBloom (
308
291
bt ,
309
- series ,
310
292
NewSliceIter ([]* Bloom {& bloom }),
311
293
NewSliceIter ([]ChunkRefWithIter {{Ref : ChunkRef {},
312
294
Itr : itr }}),
0 commit comments