Use RWMutex instead of Mutex
This commit is contained in:
parent
4704b8fbcf
commit
7be0715d39
2
cert.go
2
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.
|
||||
|
Loading…
Reference in New Issue
Block a user