Skip to content

Commit

Permalink
Remove duplicate words in comments (#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abirdcfly authored Aug 27, 2022
1 parent 0c57fac commit e1801fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/caddyhttp/reverseproxy/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/caddyhttp/reverseproxy/upstreams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1801fd

Please sign in to comment.