mirror of
https://github.com/coredns/coredns.git
synced 2025-12-09 11:55:13 -05:00
plugin/health : rework overloaded goroutine to support graceful shutdown (#5244)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
This commit is contained in:
@@ -17,7 +17,7 @@ func setup(c *caddy.Controller) error {
|
||||
return plugin.Error("health", err)
|
||||
}
|
||||
|
||||
h := &health{Addr: addr, stop: make(chan bool), lameduck: lame}
|
||||
h := &health{Addr: addr, lameduck: lame}
|
||||
|
||||
c.OnStartup(h.OnStartup)
|
||||
c.OnRestart(h.OnFinalShutdown)
|
||||
|
||||
Reference in New Issue
Block a user