mirror of
https://github.com/coredns/coredns.git
synced 2026-10-15 15:05:22 -04:00
plugin/grpc: close clients on shutdown (#8582)
This PR closes from the plugin shutdown hook Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -28,6 +28,7 @@ func setup(c *caddy.Controller) error {
|
||||
g.Next = next // Set the Next field, so the plugin chaining works.
|
||||
return g
|
||||
})
|
||||
c.OnShutdown(g.OnShutdown)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user