summaryrefslogtreecommitdiffstats
path: root/src/matcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/matcher.go')
-rw-r--r--src/matcher.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/matcher.go b/src/matcher.go
index bbd9c890..84130b23 100644
--- a/src/matcher.go
+++ b/src/matcher.go
@@ -86,7 +86,7 @@ func (m *Matcher) Loop() {
}
if !foundCache {
- merger, cancelled = m.scan(request, 0)
+ merger, cancelled = m.scan(request)
}
if !cancelled {
@@ -121,7 +121,7 @@ type partialResult struct {
matches []*Item
}
-func (m *Matcher) scan(request MatchRequest, limit int) (*Merger, bool) {
+func (m *Matcher) scan(request MatchRequest) (*Merger, bool) {
startedAt := time.Now()
numChunks := len(request.chunks)
@@ -175,10 +175,6 @@ func (m *Matcher) scan(request MatchRequest, limit int) (*Merger, bool) {
count++
matchCount += matchesInChunk
- if limit > 0 && matchCount > limit {
- return nil, wait() // For --select-1 and --exit-0
- }
-
if count == numChunks {
break
}