Commit 86d23f93 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Reset the line count after committing

parent 83b022ab
......@@ -233,7 +233,10 @@ class RuleImportService : Service() {
for ((matcher, hosts) in iterator) {
if (matcher.reset(line).matches()) {
hosts.second.add(processLine(matcher, sourceId))
if(lineCount > ruleCommitSize) commitLines(parsers)
if(lineCount > ruleCommitSize) {
commitLines(parsers)
lineCount = 0
}
} else {
if (hosts.first > 5) {
log("Matcher $matcher failed 5 times, last for '$line'. Removing.")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment