~sotirisp/kindleto

faaff15151ac14fbdf0cb20b3b6a145bf127af3a — Sotiris Papatheodorou a month ago 00e8188
Reduce the TOFU cache save interval
1 files changed, 1 insertions(+), 1 deletions(-)

M certificates.go
M certificates.go => certificates.go +1 -1
@@ 394,7 394,7 @@ func saveTOFU(optTofuFile string) {
	muServerCerts.Unlock()
	f.Close()

	tofuUpdateInterval := 10 * time.Second
	tofuUpdateInterval := 8 * time.Hour
	fails := 0
	for !optTrust {
		now := time.Now()