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