Skip to content

Commit 25e086d

Browse files
committed
noot
1 parent 561a6e3 commit 25e086d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/caddytls/tls.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"runtime/debug"
2525
"sync"
2626
"time"
27-
"unsafe"
2827

2928
"github.com/caddyserver/certmagic"
3029
"go.uber.org/zap"
@@ -147,9 +146,7 @@ func (t *TLS) Provision(ctx caddy.Context) error {
147146
certCacheMu.Lock()
148147
if certCache == nil {
149148
certCache = certmagic.NewCache(cacheOpts)
150-
fmt.Println("creating cert cache", unsafe.Pointer(certCache))
151149
} else {
152-
fmt.Println("reusing cert cache", unsafe.Pointer(certCache))
153150
certCache.SetOptions(cacheOpts)
154151
}
155152
certCacheMu.Unlock()
@@ -359,7 +356,6 @@ func (t *TLS) Stop() error {
359356

360357
// Cleanup frees up resources allocated during Provision.
361358
func (t *TLS) Cleanup() error {
362-
fmt.Println("cleanup called cert cache", unsafe.Pointer(certCache))
363359
// stop the session ticket rotation goroutine
364360
if t.SessionTickets != nil {
365361
t.SessionTickets.stop()
@@ -405,7 +401,6 @@ func (t *TLS) Cleanup() error {
405401

406402
// remove the certs
407403
certCacheMu.RLock()
408-
fmt.Println("washing cert cache", unsafe.Pointer(certCache))
409404
certCache.RemoveManaged(noLongerManaged)
410405
certCache.Remove(noLongerLoaded)
411406
certCacheMu.RUnlock()
@@ -422,7 +417,6 @@ func (t *TLS) Cleanup() error {
422417
certCache.Stop()
423418
certCacheMu.Lock()
424419
certCache = nil
425-
fmt.Println("deleting cert cache", unsafe.Pointer(certCache))
426420
certCacheMu.Unlock()
427421
}
428422

0 commit comments

Comments
 (0)