From 0c0142c8ccd411485da7bc6fea4550566c3d78b9 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 24 Sep 2016 16:05:33 -0600 Subject: [PATCH] Delete tryDuration, now unused --- caddyhttp/proxy/proxy.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/caddyhttp/proxy/proxy.go b/caddyhttp/proxy/proxy.go index 82a633546..cd11abde5 100644 --- a/caddyhttp/proxy/proxy.go +++ b/caddyhttp/proxy/proxy.go @@ -80,10 +80,6 @@ func (uh *UpstreamHost) Available() bool { return !uh.Down() && !uh.Full() } -// tryDuration is how long to try upstream hosts; failures result in -// immediate retries until this duration ends or we get a nil host. -var tryDuration = 60 * time.Second - // ServeHTTP satisfies the httpserver.Handler interface. func (p Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { // start by selecting most specific matching upstream config