mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-14 14:56:27 +03:00
Remove duplicate words in comments (#4986)
This commit is contained in:
parent
0c57facc67
commit
e1801fdb19
2 changed files with 2 additions and 2 deletions
|
@ -1360,7 +1360,7 @@ var bufPool = sync.Pool{
|
||||||
}
|
}
|
||||||
|
|
||||||
// handleResponseContext carries some contextual information about the
|
// handleResponseContext carries some contextual information about the
|
||||||
// the current proxy handling.
|
// current proxy handling.
|
||||||
type handleResponseContext struct {
|
type handleResponseContext struct {
|
||||||
// handler is the active proxy handler instance, so that
|
// handler is the active proxy handler instance, so that
|
||||||
// routes like copy_response may inherit some config
|
// routes like copy_response may inherit some config
|
||||||
|
|
|
@ -137,7 +137,7 @@ func (su SRVUpstreams) GetUpstreams(r *http.Request) ([]*Upstream, error) {
|
||||||
_, records, err := su.resolver.LookupSRV(r.Context(), service, proto, name)
|
_, records, err := su.resolver.LookupSRV(r.Context(), service, proto, name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// From LookupSRV docs: "If the response contains invalid names, those records are filtered
|
// From LookupSRV docs: "If the response contains invalid names, those records are filtered
|
||||||
// out and an error will be returned alongside the the remaining results, if any." Thus, we
|
// out and an error will be returned alongside the remaining results, if any." Thus, we
|
||||||
// only return an error if no records were also returned.
|
// only return an error if no records were also returned.
|
||||||
if len(records) == 0 {
|
if len(records) == 0 {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue