mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
pprof does not need to inject middleware
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user