1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2025-08-21 22:29:55 +02:00

Use RWMutex instead of Mutex

This commit is contained in:
adnano 2020-12-17 17:08:45 -05:00
parent e589709c4f
commit 09d6340ce8
2 changed files with 2 additions and 2 deletions

@ -30,7 +30,7 @@ type CertificateDir struct {
CertificateStore
dir bool
path string
mu sync.Mutex
mu sync.RWMutex
}
// Add adds a certificate for the given scope to the store.

@ -31,7 +31,7 @@ type KnownHosts map[string]Fingerprint
type KnownHostsFile struct {
KnownHosts
out io.Writer
mu sync.Mutex
mu sync.RWMutex
}
// SetOutput sets the output to which new known hosts will be written to.