looterz / grimd

:zap: fast dns proxy that can run anywhere, built to black-hole internet advertisements and malware servers
MIT License
1.38k stars 108 forks source link

Using the right mutex lock type in MemoryCache.Get() #46

Closed emdioh closed 5 years ago

emdioh commented 5 years ago

Get() can update the cache when the entry is expired, so a RLock is not good enough.