mirror of
https://github.com/miekg/dns.git
synced 2025-10-10 09:21:01 +02:00
remove mutex here
This commit is contained in:
parent
2bc1cd1a2e
commit
104d9bf0ba
@ -218,9 +218,9 @@ func (mux *ServeMux) HandleRemove(pattern string) {
|
||||
if pattern == "" {
|
||||
panic("dns: invalid pattern " + pattern)
|
||||
}
|
||||
mux.m.Lock()
|
||||
// don't need a mutex here, because deleting is OK, even if the
|
||||
// entry is note there.
|
||||
delete(mux.z, Fqdn(pattern))
|
||||
mux.m.Unlock()
|
||||
}
|
||||
|
||||
// ServeDNS dispatches the request to the handler whose
|
||||
|
Loading…
x
Reference in New Issue
Block a user