dnsfilter metrics -- parental cache hits were counted as safebrowsing cache hits
This commit is contained in:
parent
74275bebdc
commit
c572c7b0e9
|
@ -563,7 +563,7 @@ func (d *Dnsfilter) lookupCommon(host string, lookupstats *LookupStats, cache gc
|
||||||
// check cache
|
// check cache
|
||||||
cachedValue, isFound, err := getCachedReason(cache, host)
|
cachedValue, isFound, err := getCachedReason(cache, host)
|
||||||
if isFound {
|
if isFound {
|
||||||
atomic.AddUint64(&stats.Safebrowsing.CacheHits, 1)
|
atomic.AddUint64(&lookupstats.CacheHits, 1)
|
||||||
return cachedValue, nil
|
return cachedValue, nil
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue