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