aboutsummaryrefslogtreecommitdiff
path: root/middleware/pprof/pprof.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/pprof/pprof.go')
-rw-r--r--middleware/pprof/pprof.go15
1 files changed, 2 insertions, 13 deletions
diff --git a/middleware/pprof/pprof.go b/middleware/pprof/pprof.go
index 2c812f246..42102d198 100644
--- a/middleware/pprof/pprof.go
+++ b/middleware/pprof/pprof.go
@@ -5,22 +5,11 @@ import (
"net"
"net/http"
pp "net/http/pprof"
-
- "github.com/miekg/coredns/middleware"
-
- "github.com/miekg/dns"
- "golang.org/x/net/context"
)
type Handler struct {
- Next middleware.Handler
- ln net.Listener
- mux *http.ServeMux
-}
-
-// ServeDNS passes all other requests up the chain.
-func (h *Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
- return h.Next.ServeDNS(ctx, w, r)
+ ln net.Listener
+ mux *http.ServeMux
}
func (h *Handler) Start() error {