mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 08:51:11 +08:00
add TempSkippedNodesPool
This commit is contained in:
parent
9cfc82a347
commit
60b2936eff
2 changed files with 23 additions and 3 deletions
|
|
@ -89,7 +89,7 @@ func (c *Context) reset(w http.ResponseWriter, req *http.Request) {
|
|||
if cap(c.Params) > 0 {
|
||||
c.Params = c.Params[:0]
|
||||
} else {
|
||||
c.Params = make(Params, 0, 5)
|
||||
c.Params = make(Params, 0, c.engine.maxParams)
|
||||
}
|
||||
c.handlers = nil
|
||||
c.index = -1 // 初始为 -1,`Next()` 将其设置为 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue