Update api.go

Co-authored-by: Matthew Jaffee <matthew.jaffee@gmail.com>
This commit is contained in:
tgruben 2021-02-22 11:06:55 -06:00 committed by GitHub
parent 155a4b4a31
commit 1b87b7148e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
api.go
View file

@ -425,7 +425,7 @@ func importWorker(importWork chan importJob) {
data := viewData
if fileMagic != roaring.MagicNumber {
// if the view data arrives is in the "standard" roaring format, we must
// make a copy of data in order allow for the convertion to the pilosa roaring run format
// make a copy of data in order allow for the conversion to the pilosa roaring run format
// in field.importRoaring
data = make([]byte, len(viewData))
copy(data, viewData)