From 25e086d373e7f30dc70a20c64d2f6731850a9e9c Mon Sep 17 00:00:00 2001 From: a Date: Sun, 23 Jun 2024 19:47:55 -0500 Subject: [PATCH] noot --- modules/caddytls/tls.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go index 67a4725ca3d5..b30b10c24ad5 100644 --- a/modules/caddytls/tls.go +++ b/modules/caddytls/tls.go @@ -24,7 +24,6 @@ import ( "runtime/debug" "sync" "time" - "unsafe" "github.com/caddyserver/certmagic" "go.uber.org/zap" @@ -147,9 +146,7 @@ func (t *TLS) Provision(ctx caddy.Context) error { certCacheMu.Lock() if certCache == nil { certCache = certmagic.NewCache(cacheOpts) - fmt.Println("creating cert cache", unsafe.Pointer(certCache)) } else { - fmt.Println("reusing cert cache", unsafe.Pointer(certCache)) certCache.SetOptions(cacheOpts) } certCacheMu.Unlock() @@ -359,7 +356,6 @@ func (t *TLS) Stop() error { // Cleanup frees up resources allocated during Provision. func (t *TLS) Cleanup() error { - fmt.Println("cleanup called cert cache", unsafe.Pointer(certCache)) // stop the session ticket rotation goroutine if t.SessionTickets != nil { t.SessionTickets.stop() @@ -405,7 +401,6 @@ func (t *TLS) Cleanup() error { // remove the certs certCacheMu.RLock() - fmt.Println("washing cert cache", unsafe.Pointer(certCache)) certCache.RemoveManaged(noLongerManaged) certCache.Remove(noLongerLoaded) certCacheMu.RUnlock() @@ -422,7 +417,6 @@ func (t *TLS) Cleanup() error { certCache.Stop() certCacheMu.Lock() certCache = nil - fmt.Println("deleting cert cache", unsafe.Pointer(certCache)) certCacheMu.Unlock() }