Use RWMutex instead of Mutex
This commit is contained in:
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.
|
||||
|
||||
Reference in New Issue
Block a user