mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
More middleware updates.
This commit is contained in:
@@ -108,9 +108,6 @@ func (c *middlewareContextImpl) Index() int {
|
||||
|
||||
func (s *Server) middlewareWrapperFunc(ctx context.Context) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
if len(s.middlewares) == 0 {
|
||||
return
|
||||
}
|
||||
// TODO: we should get rid of this, gin context and middleware context both implement context, don't need a third one here
|
||||
ctx = c.MustGet("ctx").(context.Context)
|
||||
fctx := &middlewareContextImpl{Context: ctx}
|
||||
|
||||
Reference in New Issue
Block a user