aboutsummaryrefslogtreecommitdiff
path: root/cert.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-12-17 17:08:45 -0500
committerAdnan Maolood <[email protected]>2020-12-17 17:08:45 -0500
commit7be0715d39a7dcef223eebd13d4c21ef204cb25f (patch)
treed217f216647a898522e4eaf50f8bab1b284c5ab4 /cert.go
parentAdd missing imports (diff)
downloadgo-gemini-7be0715d39a7dcef223eebd13d4c21ef204cb25f.tar.xz
go-gemini-7be0715d39a7dcef223eebd13d4c21ef204cb25f.zip
Use RWMutex instead of Mutex
Diffstat (limited to 'cert.go')
-rw-r--r--cert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cert.go b/cert.go
index c2c0c5e..dd8a1f5 100644
--- a/cert.go
+++ b/cert.go
@@ -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.