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() {
67
67
})
68
68
continue
69
69
}
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 )
73
72
if err != nil {
74
73
output (& genericMessageJSON {
75
74
EventType : "command_error" ,
76
75
Error : true ,
77
76
Message : "Invalid protocol version: " + matches [2 ],
78
77
})
79
78
}
80
- // fmt.Println("User agent:", userAgent)
81
- // fmt.Println("Req. Protocol version:", reqProtocolVersion)
82
79
output (& helloMessageJSON {
83
80
EventType : "hello" ,
84
81
ProtocolVersion : 1 , // Protocol version 1 is the only supported for now...
You can’t perform that action at this time.
0 commit comments