lonng / nano

Lightweight, facility, high performance golang based game server framework
MIT License
2.88k stars 445 forks source link

route delete bind #100

Closed cute-angelia closed 1 year ago

cute-angelia commented 1 year ago

file: router.go

add Delete func for

  1. some son-service restart, sadly it's not auto bind new son-service
  2. some game have match to some service, delete bind and match customer service
func (r *Router) Delete(service string) {
    r.routes.Delete(service)
}