mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 17:24:20 -04:00
Misspell correction (#826)
Did a `misspell . | grep -v ^vendor` and fixed several typos. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
2
middleware/cache/handler.go
vendored
2
middleware/cache/handler.go
vendored
@@ -43,7 +43,7 @@ func (c *Cache) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
|
||||
|
||||
if c.prefetch > 0 && i.Freq.Hits() > c.prefetch && pct < c.percentage {
|
||||
// When prefetching we loose the item i, and with it the frequency
|
||||
// that we've gathered sofar. See we copy the frequence info back
|
||||
// that we've gathered sofar. See we copy the frequencies info back
|
||||
// into the new item that was stored in the cache.
|
||||
prr := &ResponseWriter{ResponseWriter: w, Cache: c, prefetch: true}
|
||||
middleware.NextOrFailure(c.Name(), c.Next, ctx, prr, r)
|
||||
|
||||
Reference in New Issue
Block a user