Syntax matching sugar
This commit is contained in:
parent
ec47a58ba1
commit
564b64a758
@ -206,7 +206,7 @@ func (s *Server) liveSubscription(
|
||||
}
|
||||
}
|
||||
writePing := func() {
|
||||
switch msg.OutputType {
|
||||
switch outputType {
|
||||
case JSON:
|
||||
if len(msg.Args) > 1 {
|
||||
write([]byte(`{"ok":true,"ping":` + jsonString(msg.Args[1]) + `,"elapsed":"` + time.Since(start).String() + `"}`))
|
||||
|
Loading…
x
Reference in New Issue
Block a user