mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Metrics reload (#1586)
* wip * plugin/metrics: fix reload behavior Fixes #1472
This commit is contained in:
@@ -103,13 +103,8 @@ func (m *Metrics) OnStartup() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// OnShutdown tears down the metrics on shutdown and restart.
|
||||
func (m *Metrics) OnShutdown() error {
|
||||
if m.ln != nil {
|
||||
return m.ln.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// OnShutdown tears down the metrics listener on shutdown and restart.
|
||||
func (m *Metrics) OnShutdown() error { return m.ln.Close() }
|
||||
|
||||
func keys(m map[string]bool) []string {
|
||||
sx := []string{}
|
||||
|
||||
Reference in New Issue
Block a user