diff options
Diffstat (limited to 'middleware/cache')
-rw-r--r-- | middleware/cache/freq/freq.go | 2 | ||||
-rw-r--r-- | middleware/cache/handler.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/middleware/cache/freq/freq.go b/middleware/cache/freq/freq.go index 4e7f7722e..f545f222e 100644 --- a/middleware/cache/freq/freq.go +++ b/middleware/cache/freq/freq.go @@ -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 diff --git a/middleware/cache/handler.go b/middleware/cache/handler.go index ce3df2f75..90c63d93a 100644 --- a/middleware/cache/handler.go +++ b/middleware/cache/handler.go @@ -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) |