Remove duplicate words in comments (#4986)

This commit is contained in:
Abirdcfly 2022-08-28 04:39:26 +08:00 committed by GitHub
parent 0c57facc67
commit e1801fdb19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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