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:
Yong Tang 2017-08-04 09:06:06 -07:00 committed by Miek Gieben
parent 21386ebdd5
commit c08497adee
9 changed files with 9 additions and 8 deletions

View file

@ -7,7 +7,7 @@ import (
"time"
)
// Freq tracks the frequence of things.
// Freq tracks the frequencies of things.
type Freq struct {
// Last time we saw a query for this element.
last time.Time

View file

@ -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)