aboutsummaryrefslogtreecommitdiff
path: root/plugin/pprof/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/pprof/setup.go')
-rw-r--r--plugin/pprof/setup.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugin/pprof/setup.go b/plugin/pprof/setup.go
index 8de3b2ac0..a9b93673c 100644
--- a/plugin/pprof/setup.go
+++ b/plugin/pprof/setup.go
@@ -3,7 +3,6 @@ package pprof
import (
"net"
"strconv"
- "sync"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
@@ -62,12 +61,7 @@ func setup(c *caddy.Controller) error {
}
- pprofOnce.Do(func() {
- c.OnStartup(h.Startup)
- c.OnShutdown(h.Shutdown)
- })
-
+ c.OnStartup(h.Startup)
+ c.OnShutdown(h.Shutdown)
return nil
}
-
-var pprofOnce sync.Once