parent
6281e50f3e
commit
09172d231d
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue