aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/proxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/proxy.go')
-rw-r--r--plugin/forward/proxy.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/forward/proxy.go b/plugin/forward/proxy.go
index fbe79cd69..bf4d68dca 100644
--- a/plugin/forward/proxy.go
+++ b/plugin/forward/proxy.go
@@ -11,8 +11,7 @@ import (
// Proxy defines an upstream host.
type Proxy struct {
- avgRtt int64
- fails uint32
+ fails uint32
addr string
@@ -32,7 +31,6 @@ func NewProxy(addr, trans string) *Proxy {
fails: 0,
probe: up.New(),
transport: newTransport(addr),
- avgRtt: int64(maxTimeout / 2),
}
p.health = NewHealthChecker(trans)
runtime.SetFinalizer(p, (*Proxy).finalizer)