git » chasquid » commit a3f7914

sts: Remove unused struct member

author Alberto Bertogli
2023-07-27 22:32:16 UTC
committer Alberto Bertogli
2023-07-28 09:05:15 UTC
parent 2b7e33a615d7debb200872cc535c016648032334

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 +0 -3

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