fix bug preventing slice copy

This commit is contained in:
saji 2024-02-13 10:50:11 -06:00
parent 6c5162a8be
commit 33c2f3f023

View file

@ -130,7 +130,7 @@ func importAction(ctx *cli.Context) error {
if batchIdx >= int(bSize) {
// flush it!!!!
wg.Add(1)
e := make([]skylab.BusEvent, 0, bSize)
e := make([]skylab.BusEvent, bSize)
copy(e, eventsBatch)
go func(e []skylab.BusEvent) {
delegateInsert(e)