aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/uniq/uniq.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-06-09 08:10:15 +0100
committerGravatar GitHub <noreply@github.com> 2019-06-09 08:10:15 +0100
commita1c97f82a6f27ae1f4489a1dc5d0bc6fa4cce9ed (patch)
tree2d3e175189784fc2feca6e712c39dcbe82c4836a /plugin/pkg/uniq/uniq.go
parentbd83f74deb9e277ad5d101352a195cda548406c4 (diff)
downloadcoredns-a1c97f82a6f27ae1f4489a1dc5d0bc6fa4cce9ed.tar.gz
coredns-a1c97f82a6f27ae1f4489a1dc5d0bc6fa4cce9ed.tar.zst
coredns-a1c97f82a6f27ae1f4489a1dc5d0bc6fa4cce9ed.zip
plugin/ready: fix starts and restarts (#2814)
Add OnRestartFailed to the ready plugin and some various cleanups. Document slightly better how things are supposed to work with multiple `ready`'s in the multiple Server Blocks. All manually tested with this Corefile: ~~~ . { log ready } example.org { log chaos ready } ~~~ And then `kill -SIGUSR1` and curling the ready endpoint. This works well, the FailedReload is triggered by adding a syntax error in the Corefile. See #2659 Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/pkg/uniq/uniq.go')
-rw-r--r--plugin/pkg/uniq/uniq.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/pkg/uniq/uniq.go b/plugin/pkg/uniq/uniq.go
index c3fdb5211..5f95e41d2 100644
--- a/plugin/pkg/uniq/uniq.go
+++ b/plugin/pkg/uniq/uniq.go
@@ -28,7 +28,7 @@ func (u U) Unset(key string) {
delete(u.u, key)
}
-// ForEach iterates for u executes f for each element that is 'todo' and sets it to 'done'.
+// ForEach iterates over u and executes f for each element that is 'todo' and sets it to 'done'.
func (u U) ForEach() error {
for k, v := range u.u {
if v.state == todo {