pprof does not need to inject middleware

This commit is contained in:
Miek Gieben 2016-04-29 22:04:22 +01:00
parent 9e9d72655d
commit 14b84ce02b
2 changed files with 3 additions and 18 deletions

View file

@ -29,9 +29,5 @@ func PProf(c *Controller) (middleware.Middleware, error) {
c.Startup = append(c.Startup, handler.Start)
c.Shutdown = append(c.Shutdown, handler.Shutdown)
})
return func(next middleware.Handler) middleware.Handler {
handler.Next = next
return handler
}, nil
return nil, nil
}