0
0
Fork 0

go fmt and go vet

This commit is contained in:
Steve Yen 2017-01-07 22:14:22 -08:00
parent 40780254ae
commit 931d133024
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ func (ldbs *Store) CompactWithBatchSize(batchSize int) error {
batch.Reset()
}
return ldbs.db.CompactRange(util.Range{nil, nil})
return ldbs.db.CompactRange(util.Range{Start: nil, Limit: nil})
}
// Compact compacts the underlying goleveldb store. The current implementation includes a workaround

View File

@ -167,7 +167,7 @@ func (s *TermQueryScorer) Score(ctx *search.SearchContext, termMatch *index.Term
loc.End = float64(v.End)
if len(v.ArrayPositions) > 0 {
loc.ArrayPositions = positions[positionsUsed:positionsUsed+len(v.ArrayPositions)]
loc.ArrayPositions = positions[positionsUsed : positionsUsed+len(v.ArrayPositions)]
for i, ap := range v.ArrayPositions {
loc.ArrayPositions[i] = float64(ap)
}