go fmt and go vet
This commit is contained in:
parent
40780254ae
commit
931d133024
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue