aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'middleware')
-rw-r--r--middleware/cache/freq/freq.go2
-rw-r--r--middleware/cache/handler.go2
-rw-r--r--middleware/dnstap/taprw/writer.go2
-rw-r--r--middleware/file/lookup.go2
-rw-r--r--middleware/kubernetes/autopath.go2
-rw-r--r--middleware/kubernetes/kubernetes_test.go2
6 files changed, 6 insertions, 6 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)
diff --git a/middleware/dnstap/taprw/writer.go b/middleware/dnstap/taprw/writer.go
index 96f560139..6f4af330f 100644
--- a/middleware/dnstap/taprw/writer.go
+++ b/middleware/dnstap/taprw/writer.go
@@ -26,7 +26,7 @@ type ResponseWriter struct {
err error
}
-// Check if a dnstap error occured.
+// Check if a dnstap error occurred.
// Set during ResponseWriter.Write.
func (w ResponseWriter) DnstapError() error {
return w.err
diff --git a/middleware/file/lookup.go b/middleware/file/lookup.go
index 36db27dc4..2ca1ec943 100644
--- a/middleware/file/lookup.go
+++ b/middleware/file/lookup.go
@@ -39,7 +39,7 @@ func (z *Zone) Lookup(state request.Request, qname string) ([]dns.RR, []dns.RR,
}
}()
- // If z is a secondary zone we might not have transfered it, meaning we have
+ // If z is a secondary zone we might not have transferred it, meaning we have
// all zone context setup, except the actual record. This means (for one thing) the apex
// is empty and we don't have a SOA record.
soa := z.Apex.SOA
diff --git a/middleware/kubernetes/autopath.go b/middleware/kubernetes/autopath.go
index 22ef79a27..ac86cfd6b 100644
--- a/middleware/kubernetes/autopath.go
+++ b/middleware/kubernetes/autopath.go
@@ -6,7 +6,7 @@ import "github.com/miekg/dns"
// * reverts question section of a packet to its original state.
// This is done to avoid the 'Question section mismatch:' error in client.
// * Defers write to the client if the response code is NXDOMAIN. This is needed
-// to enable further search path probing if a search was not sucessful.
+// to enable further search path probing if a search was not successful.
// * Allow forced write to client regardless of response code. This is needed to
// write the packet to the client if the final search in the path fails to
// produce results.
diff --git a/middleware/kubernetes/kubernetes_test.go b/middleware/kubernetes/kubernetes_test.go
index 740baf759..3323ff893 100644
--- a/middleware/kubernetes/kubernetes_test.go
+++ b/middleware/kubernetes/kubernetes_test.go
@@ -71,7 +71,7 @@ func TestIsNameError(t *testing.T) {
if !k.IsNameError(errInvalidRequest) {
t.Errorf("Expected 'true' for '%v'", errInvalidRequest)
}
- otherErr := errors.New("Some other error occured")
+ otherErr := errors.New("Some other error occurred")
if k.IsNameError(otherErr) {
t.Errorf("Expected 'true' for '%v'", otherErr)
}