Permalink
Browse files

Revert "instrument encoding"

This reverts commit a18ef1f.
  • Loading branch information...
1 parent a18ef1f commit af7f578ce76f0c62ad983e177a90e161a084399a ♠ ace hacker committed Mar 26, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 encoding/parser.go
View
@@ -5,14 +5,11 @@ import (
"regexp"
"strconv"
"strings"
- "l2met/utils"
- "time"
)
var msgPat = regexp.MustCompile(`( *)([a-zA-Z0-9\_\-\.]+)=?(([a-zA-Z0-9\.\-\_\.]+)|("([^\"]+)"))?`)
func ParseMsgData(msg []byte) (map[string]string, error) {
- defer utils.MeasureT("encoding.parse-msg-data", time.Now())
d := make(map[string]string)
pairs := msgPat.FindAllStringSubmatch(string(msg), -1)
for i := range pairs {

0 comments on commit af7f578

Please sign in to comment.