mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 00:41:10 +08:00
remove dup engine.pool.Put(c)
This commit is contained in:
parent
4249f0192e
commit
450d6294ad
1 changed files with 0 additions and 1 deletions
|
|
@ -331,7 +331,6 @@ func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||
func (engine *Engine) handleRequest(c *Context) {
|
||||
httpMethod := c.Request.Method
|
||||
requestPath := c.Request.URL.Path
|
||||
defer engine.pool.Put(c)
|
||||
|
||||
// 查找对应的路由树的根节点
|
||||
rootNode := engine.methodTrees.get(httpMethod) // 这里获取到的 rootNode 已经是 *node 类型
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue