From 09172d231d378cddce2bfa555bbf5d345c2a8f4c Mon Sep 17 00:00:00 2001 From: mic <562710164> Date: Fri, 17 Feb 2023 17:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=9A=E4=B9=89=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tcp/gnetserver.go | 4 ---- ws/gnetserver.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tcp/gnetserver.go b/tcp/gnetserver.go index 8d9aa85..e44af80 100644 --- a/tcp/gnetserver.go +++ b/tcp/gnetserver.go @@ -42,10 +42,6 @@ type GnetServer struct { func (s *GnetServer) addRoutes(r featuredRoutes) { for _, route := range r.routes { - if route.Command > define.SYS_NET_ENV_START { - logx.Errorf("命令标识不能超过%d", define.SYS_NET_ENV_START) - continue - } s.handlers.Store(route.Command, route.Handler) } } diff --git a/ws/gnetserver.go b/ws/gnetserver.go index 57d837d..e675a05 100644 --- a/ws/gnetserver.go +++ b/ws/gnetserver.go @@ -44,10 +44,6 @@ type GnetServer struct { func (s *GnetServer) addRoutes(r featuredRoutes) { for _, route := range r.routes { - if route.Command > define.SYS_NET_ENV_START { - logx.Errorf("命令标识不能超过%d", define.SYS_NET_ENV_START) - continue - } s.handlers.Store(route.Command, route.Handler) } }