mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 14:52:55 +08:00
Remove duplicate words in comments (#4986)
This commit is contained in:
parent
0c57facc67
commit
e1801fdb19
|
@ -1360,7 +1360,7 @@ var bufPool = sync.Pool{
|
|||
}
|
||||
|
||||
// handleResponseContext carries some contextual information about the
|
||||
// the current proxy handling.
|
||||
// current proxy handling.
|
||||
type handleResponseContext struct {
|
||||
// handler is the active proxy handler instance, so that
|
||||
// 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)
|
||||
if err != nil {
|
||||
// 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.
|
||||
if len(records) == 0 {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user