aboutsummaryrefslogtreecommitdiff
path: root/plugin/proxy/down.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/proxy/down.go')
-rw-r--r--plugin/proxy/down.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugin/proxy/down.go b/plugin/proxy/down.go
deleted file mode 100644
index 11f839b46..000000000
--- a/plugin/proxy/down.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package proxy
-
-import (
- "sync/atomic"
-
- "github.com/coredns/coredns/plugin/pkg/healthcheck"
-)
-
-// Default CheckDown functions for use in the proxy plugin.
-var checkDownFunc = func(upstream *staticUpstream) healthcheck.UpstreamHostDownFunc {
- return func(uh *healthcheck.UpstreamHost) bool {
- fails := atomic.LoadInt32(&uh.Fails)
- if fails >= upstream.MaxFails && upstream.MaxFails != 0 {
- return true
- }
- return false
- }
-}