mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-13 09:06:41 +00:00
remove unnecessary mutex lock
This commit is contained in:
parent
f2216f9f52
commit
db3d33dae1
1 changed files with 0 additions and 2 deletions
|
|
@ -3,8 +3,6 @@ package caddytls
|
|||
// IsManaging returns true if the name is being managed by this TLS app.
|
||||
// This is for testing purposes only.
|
||||
func (t *TLS) IsManaging(name string) bool {
|
||||
t.serverNamesMu.Lock()
|
||||
defer t.serverNamesMu.Unlock()
|
||||
_, ok := t.managing[name]
|
||||
return ok
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue