aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg
diff options
context:
space:
mode:
authorGravatar Karsten Weiss <knweiss@gmail.com> 2018-08-14 17:55:55 +0200
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2018-08-14 08:55:55 -0700
commit6d8a078704567821513e8ccab29fdc5baee809f7 (patch)
tree98f3d865bfa5b853780129647ca8be7027820acc /plugin/pkg
parent18a77cd04557b810eba96a7239d39ee2d7a92157 (diff)
downloadcoredns-6d8a078704567821513e8ccab29fdc5baee809f7.tar.gz
coredns-6d8a078704567821513e8ccab29fdc5baee809f7.tar.zst
coredns-6d8a078704567821513e8ccab29fdc5baee809f7.zip
Typo fixes (#2031)
Diffstat (limited to 'plugin/pkg')
-rw-r--r--plugin/pkg/doh/doh.go2
-rw-r--r--plugin/pkg/up/up.go2
-rw-r--r--plugin/pkg/watch/watcher.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugin/pkg/doh/doh.go b/plugin/pkg/doh/doh.go
index e0a398e9c..812b89b1e 100644
--- a/plugin/pkg/doh/doh.go
+++ b/plugin/pkg/doh/doh.go
@@ -53,7 +53,7 @@ func NewRequest(method, url string, m *dns.Msg) (*http.Request, error) {
}
-// ResponseToMsg converts a http.Repsonse to a dns message.
+// ResponseToMsg converts a http.Response to a dns message.
func ResponseToMsg(resp *http.Response) (*dns.Msg, error) {
defer resp.Body.Close()
diff --git a/plugin/pkg/up/up.go b/plugin/pkg/up/up.go
index e4752ce4d..e2c9fe2cd 100644
--- a/plugin/pkg/up/up.go
+++ b/plugin/pkg/up/up.go
@@ -18,7 +18,7 @@ type Probe struct {
// Func is used to determine if a target is alive. If so this function must return nil.
type Func func() error
-// New returns a pointer to an intialized Probe.
+// New returns a pointer to an initialized Probe.
func New() *Probe { return &Probe{} }
// Do will probe target, if a probe is already in progress this is a noop.
diff --git a/plugin/pkg/watch/watcher.go b/plugin/pkg/watch/watcher.go
index 59474a7bc..86a952db2 100644
--- a/plugin/pkg/watch/watcher.go
+++ b/plugin/pkg/watch/watcher.go
@@ -169,7 +169,7 @@ func (w *Manager) Stop() {
wr := pb.WatchResponse{WatchId: id, Canceled: true}
err := stream.Send(&wr)
if err != nil {
- log.Warningf("Error notifiying client of cancellation: %s\n", err)
+ log.Warningf("Error notifying client of cancellation: %s\n", err)
}
}
delete(w.watches, wn)