Metrics reload (#1586)

* wip

* plugin/metrics: fix reload behavior

Fixes #1472
This commit is contained in:
Miek Gieben
2018-03-02 17:16:25 -08:00
committed by GitHub
parent 5546dbf3c6
commit 6f3a7af548
3 changed files with 10 additions and 11 deletions

View File

@@ -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{}