aboutsummaryrefslogtreecommitdiff
path: root/plugin/metrics/metrics.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-04-25 11:45:09 +0100
committerGravatar GitHub <noreply@github.com> 2018-04-25 11:45:09 +0100
commit5e6114b797b56d4b0f910d0c11a5dc85b37bfd52 (patch)
treedd489f9c9918d0dbad6719411d19b133bb5040a6 /plugin/metrics/metrics.go
parentce084012df435a98cac5511a294a0c45a1a3abf9 (diff)
downloadcoredns-5e6114b797b56d4b0f910d0c11a5dc85b37bfd52.tar.gz
coredns-5e6114b797b56d4b0f910d0c11a5dc85b37bfd52.tar.zst
coredns-5e6114b797b56d4b0f910d0c11a5dc85b37bfd52.zip
plugin/pkg/uniq: add (#1733)
Spin this out the metrics package so we can use it in the health one of well to fix some reload bugs.
Diffstat (limited to 'plugin/metrics/metrics.go')
-rw-r--r--plugin/metrics/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/metrics/metrics.go b/plugin/metrics/metrics.go
index e183d33d5..5816288a4 100644
--- a/plugin/metrics/metrics.go
+++ b/plugin/metrics/metrics.go
@@ -106,7 +106,7 @@ func (m *Metrics) OnRestart() error {
return nil
}
- uniqAddr.setAddressTodo(m.Addr)
+ uniqAddr.SetTodo(m.Addr)
m.ln.Close()
m.lnSetup = false