添加定义系统事件

master v0.0.18
mic 2023-02-17 17:59:03 +08:00
parent 6281e50f3e
commit 09172d231d
2 changed files with 0 additions and 8 deletions

View File

@ -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)
}
}

View File

@ -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)
}
}