From f0d250c4a767bbc7eb2fb4fc6c415e0441f4cbf4 Mon Sep 17 00:00:00 2001 From: ksw2000 <13825170+ksw2000@users.noreply.github.com> Date: Sat, 21 Sep 2024 16:58:18 +0800 Subject: [PATCH] Represent stateName by []string instead of map --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 49c06c6d98..8cd6fef5f8 100644 --- a/server.go +++ b/server.go @@ -2973,7 +2973,7 @@ const ( StateClosed ) -var stateName = map[ConnState]string{ +var stateName = []string{ StateNew: "new", StateActive: "active", StateIdle: "idle",