()
| 57 | } |
| 58 | |
| 59 | func main() { |
| 60 | |
| 61 | // 开启 Request 对象池模式 |
| 62 | server := znet.NewUserConfServer(&zconf.Config{RouterSlicesMode: true, TCPPort: 8999, Host: "127.0.0.1", RequestPoolMode: true}) |
| 63 | server.AddRouterSlices(1, Poll1) |
| 64 | server.AddRouterSlices(2, Poll4) |
| 65 | server.Serve() |
| 66 | } |
nothing calls this directly
no test coverage detected