File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,15 @@ func main() {
6767 })
6868 continue
6969 }
70- // userAgent := matches[2]
71- // reqProtocolVersion, err := strconv.ParseUint(matches[1], 10, 64)
72- _ , err := strconv .ParseUint (matches [1 ], 10 , 64 )
70+ _ /* userAgent */ = matches [2 ]
71+ _ /* reqProtocolVersion */ , err := strconv .ParseUint (matches [1 ], 10 , 64 )
7372 if err != nil {
7473 output (& genericMessageJSON {
7574 EventType : "command_error" ,
7675 Error : true ,
7776 Message : "Invalid protocol version: " + matches [2 ],
7877 })
7978 }
80- // fmt.Println("User agent:", userAgent)
81- // fmt.Println("Req. Protocol version:", reqProtocolVersion)
8279 output (& helloMessageJSON {
8380 EventType : "hello" ,
8481 ProtocolVersion : 1 , // Protocol version 1 is the only supported for now...
You can’t perform that action at this time.
0 commit comments