mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Delete tryDuration, now unused
This commit is contained in:
parent
37f05e450f
commit
0c0142c8cc
1 changed files with 0 additions and 4 deletions
|
@ -80,10 +80,6 @@ func (uh *UpstreamHost) Available() bool {
|
||||||
return !uh.Down() && !uh.Full()
|
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.
|
// ServeHTTP satisfies the httpserver.Handler interface.
|
||||||
func (p Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
|
func (p Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||||
// start by selecting most specific matching upstream config
|
// start by selecting most specific matching upstream config
|
||||||
|
|
Loading…
Reference in a new issue