Skip to content

Commit

Permalink
Remove wg on builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu committed Feb 26, 2020
1 parent b8c4db4 commit 86cfdd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/m3ninx/index/segment/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ type builder struct {
fields *shardedFieldsMap
uniqueFields [][][]byte

wg sync.WaitGroup
indexQueues []chan indexJob
closed *atomic.Bool
}
Expand Down Expand Up @@ -199,7 +198,7 @@ func (b *builder) InsertBatch(batch index.Batch) error {
}

// Wait for all the concurrent indexing jobs to finish.
b.wg.Wait()
wg.Wait()

if !batchErr.IsEmpty() {
return batchErr
Expand Down

0 comments on commit 86cfdd5

Please sign in to comment.