Skip to content

Commit e9a575f

Browse files
Hadrien-CornierJônatas Davi Paganini
authored and
Ramon Ribeiro
committed
Update cmd/tsbs_load_mongo/document_per_loader.go
Co-authored-by: Jônatas Davi Paganini <[email protected]>
1 parent ddd8824 commit e9a575f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/tsbs_load_mongo/document_per_loader.go

-2
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ func (p *naiveProcessor) ProcessBatch(b targets.Batch, doLoad bool) (uint64, uin
8484
}
8585

8686
if doLoad {
87-
//bulk := p.collection.Bulk()
8887
opts := options.InsertMany().SetOrdered(false)
89-
//bulk.Insert(p.pvs...)
9088
_, err := p.collection.InsertMany(p.dbc.ctx, p.pvs, opts)
9189
if err != nil {
9290
log.Fatalf("Bulk insert docs err: %s\n", err.Error())

0 commit comments

Comments
 (0)