From 564b64a75818a818c3b0674ef33ab083872e0f16 Mon Sep 17 00:00:00 2001 From: Chris Rice Date: Thu, 6 Jul 2023 16:29:40 -0700 Subject: [PATCH] Syntax matching sugar --- internal/server/pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/pubsub.go b/internal/server/pubsub.go index 0e440441..ce185689 100644 --- a/internal/server/pubsub.go +++ b/internal/server/pubsub.go @@ -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() + `"}`))