Skip to content

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jun 8, 2021
1 parent e45938d commit 497dea0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,15 @@ func main() {
})
continue
}
// userAgent := matches[2]
// reqProtocolVersion, err := strconv.ParseUint(matches[1], 10, 64)
_, err := strconv.ParseUint(matches[1], 10, 64)
_ /* userAgent */ = matches[2]
_ /* reqProtocolVersion */, err := strconv.ParseUint(matches[1], 10, 64)
if err != nil {
output(&genericMessageJSON{
EventType: "command_error",
Error: true,
Message: "Invalid protocol version: " + matches[2],
})
}
// fmt.Println("User agent:", userAgent)
// fmt.Println("Req. Protocol version:", reqProtocolVersion)
output(&helloMessageJSON{
EventType: "hello",
ProtocolVersion: 1, // Protocol version 1 is the only supported for now...
Expand Down

0 comments on commit 497dea0

Please sign in to comment.