mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
core: make coredns.Server a caddy.GracefulServer (#520)
* core: make coredns.Server a caddy.GracefulServer We needed to also implement the Address() method. Fixes: #519 * Add compile time check if we implement caddy.GracefulServer * Check if we should shutdown
This commit is contained in:
@@ -140,3 +140,5 @@ var (
|
||||
// GracefulTimeout is the maximum duration of a graceful shutdown.
|
||||
GracefulTimeout time.Duration
|
||||
)
|
||||
|
||||
var _ caddy.GracefulServer = new(Server)
|
||||
|
||||
Reference in New Issue
Block a user