From a3f7914e292dd4e2499701e2e68c255f499b1ecc Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Thu, 27 Jul 2023 23:32:16 +0100 Subject: [PATCH] sts: Remove unused struct member There is no synchronization needed in the sts cache, because changes are handled atomically on-disk and there is no in-memory persistence. --- internal/sts/sts.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/sts/sts.go b/internal/sts/sts.go index 05bd489..93bf878 100644 --- a/internal/sts/sts.go +++ b/internal/sts/sts.go @@ -19,7 +19,6 @@ import ( "os" "strconv" "strings" - "sync" "time" "blitiri.com.ar/go/chasquid/internal/expvarom" @@ -345,8 +344,6 @@ func hasSTSRecord(domain string) (bool, error) { // now disk is good enough for our purposes. type PolicyCache struct { dir string - - sync.Mutex } // NewCache creates an instance of PolicyCache using the given directory as