Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Feb 24, 2021
1 parent e9153df commit a7e38fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func (q *Query) parseHeader(line string) {
}
} else if strings.Contains(part, "id:") {
// Some IDs can have multiple space, so we try to bruteforce the
// number of spaces
// number of spaces. I tried implementing a version that keeps in
// memory the correct index after the first pass, but it was not
// faster that re-calculating it at each pass
item := ""
for item == "" {
idx++
Expand Down

0 comments on commit a7e38fe

Please sign in to comment.