aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar JoeWrightss <42261994+JoeWrightss@users.noreply.github.com> 2019-02-22 22:14:03 +0800
committerGravatar Chris O'Haver <cohaver@infoblox.com> 2019-02-22 09:14:03 -0500
commit92b71366846e2f4318d3214591116cfc9f6e04d1 (patch)
tree80a50b64360d4aef1f245819f0bb3de4bef9802b /plugin
parent8953722327330ee2c07be51b9eb0c4f4261a5916 (diff)
downloadcoredns-92b71366846e2f4318d3214591116cfc9f6e04d1.tar.gz
coredns-92b71366846e2f4318d3214591116cfc9f6e04d1.tar.zst
coredns-92b71366846e2f4318d3214591116cfc9f6e04d1.zip
Fix some typos in comment (#2599)
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/proxy/proxy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/proxy/proxy.go b/plugin/proxy/proxy.go
index 002007c98..ad333fbd1 100644
--- a/plugin/proxy/proxy.go
+++ b/plugin/proxy/proxy.go
@@ -45,7 +45,7 @@ type Upstream interface {
From() string
// Selects an upstream host to be routed to.
Select() *healthcheck.UpstreamHost
- // Checks if subpdomain is not an ignored.
+ // Checks if subdomain is not an ignored.
IsAllowedDomain(string) bool
// Exchanger returns the exchanger to be used for this upstream.
Exchanger() Exchanger
@@ -141,7 +141,7 @@ func (p Proxy) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
time.Sleep(timeout)
// we may go negative here, should be rectified by the HC.
atomic.AddInt32(&host.Fails, -1)
- if fails%failureCheck == 0 { // Kick off healthcheck on eveyry third failure.
+ if fails%failureCheck == 0 { // Kick off healthcheck on every third failure.
host.HealthCheckURL()
}
}(host, timeout)