mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +00:00
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.
This commit is contained in:
@@ -19,7 +19,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"blitiri.com.ar/go/chasquid/internal/expvarom"
|
"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.
|
// now disk is good enough for our purposes.
|
||||||
type PolicyCache struct {
|
type PolicyCache struct {
|
||||||
dir string
|
dir string
|
||||||
|
|
||||||
sync.Mutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCache creates an instance of PolicyCache using the given directory as
|
// NewCache creates an instance of PolicyCache using the given directory as
|
||||||
|
|||||||
Reference in New Issue
Block a user