diff --git a/main.go b/main.go index c40cfe2..920de97 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,7 @@ func main() { err = handleRecord(metricBlock, regBlock.FindStringSubmatch(line)) case regQuery.MatchString(line): - err = handleRecord(metricQuery, regBlock.FindStringSubmatch(line)) + err = handleRecord(metricQuery, regQuery.FindStringSubmatch(line)) default: continue