This commit is contained in:
Aliaksandr Valialkin 2019-06-20 14:33:38 +03:00
parent 45fc8cb72f
commit 7aadec8e3c

View file

@ -80,7 +80,7 @@ func (rc *regexpCache) Get(regexp string) *regexpCacheValue {
rcv := rc.m[regexp] rcv := rc.m[regexp]
rc.mu.RUnlock() rc.mu.RUnlock()
if rc == nil { if rcv == nil {
atomic.AddUint64(&rc.misses, 1) atomic.AddUint64(&rc.misses, 1)
} }
return rcv return rcv