aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2022-03-25 11:28:54 -0600
committerMatthew Holt <[email protected]>2022-03-25 11:28:54 -0600
commitd06d0e79f839a26ab2cf81b00ba2d180623c57a9 (patch)
treec215c3c16ad9280df4721b53460bd36aa5893489 /caddy.go
parenta58f240d3ecbb59285303746406cab50217f8d24 (diff)
downloadcaddy-d06d0e79f839a26ab2cf81b00ba2d180623c57a9.tar.gz
caddy-d06d0e79f839a26ab2cf81b00ba2d180623c57a9.zip
go.mod: Upgrade CertMagic to v0.16.0
Includes several breaking changes; code base updated accordingly. - Added lots of context arguments - Use fs.ErrNotExist - Rename ACMEManager -> ACMEIssuer; CertificateManager -> Manager
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/caddy.go b/caddy.go
index f6768c044..86935f81e 100644
--- a/caddy.go
+++ b/caddy.go
@@ -621,7 +621,7 @@ func Validate(cfg *Config) error {
// PID file, and shuts down admin endpoint(s) in a goroutine.
// Errors are logged along the way, and an appropriate exit
// code is emitted.
-func exitProcess(logger *zap.Logger) {
+func exitProcess(ctx context.Context, logger *zap.Logger) {
if logger == nil {
logger = Log()
}
@@ -636,7 +636,7 @@ func exitProcess(logger *zap.Logger) {
}
// clean up certmagic locks
- certmagic.CleanUpOwnLocks(logger)
+ certmagic.CleanUpOwnLocks(ctx, logger)
// remove pidfile
if pidfile != "" {