u
This commit is contained in:
1 parent
72a1a9184a
commit
1fd0697aee
6 files changed
+29
-8
No files matched your search
@@ -16,9 +16,8 @@ type Context struct {
|
||||
// Next 执行下一个中间件或处理函数
|
||||
func (c *Context) Next() {
|
||||
c.index++
|
||||
for c.index < len(c.handlers) {
|
||||
if c.index < len(c.handlers) {
|
||||
c.handlers[c.index](c)
|
||||
c.index++
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user