mirror of
https://github.com/coredns/coredns.git
synced 2025-11-17 09:22:24 -05:00
Fix some typos in comment (#2599)
Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
committed by
Chris O'Haver
parent
8953722327
commit
92b7136684
@@ -45,7 +45,7 @@ type Upstream interface {
|
|||||||
From() string
|
From() string
|
||||||
// Selects an upstream host to be routed to.
|
// Selects an upstream host to be routed to.
|
||||||
Select() *healthcheck.UpstreamHost
|
Select() *healthcheck.UpstreamHost
|
||||||
// Checks if subpdomain is not an ignored.
|
// Checks if subdomain is not an ignored.
|
||||||
IsAllowedDomain(string) bool
|
IsAllowedDomain(string) bool
|
||||||
// Exchanger returns the exchanger to be used for this upstream.
|
// Exchanger returns the exchanger to be used for this upstream.
|
||||||
Exchanger() Exchanger
|
Exchanger() Exchanger
|
||||||
@@ -141,7 +141,7 @@ func (p Proxy) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
|
|||||||
time.Sleep(timeout)
|
time.Sleep(timeout)
|
||||||
// we may go negative here, should be rectified by the HC.
|
// we may go negative here, should be rectified by the HC.
|
||||||
atomic.AddInt32(&host.Fails, -1)
|
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.HealthCheckURL()
|
||||||
}
|
}
|
||||||
}(host, timeout)
|
}(host, timeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user