mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04:00
docs: fix some minor issues in the comments (#7101)
This commit is contained in:
parent
33c88bd2bb
commit
c712cfcd76
@ -146,7 +146,7 @@ func (h *Handler) handleUpgradeResponse(logger *zap.Logger, wg *sync.WaitGroup,
|
|||||||
// adopted from https://github.com/golang/go/commit/8bcf2834afdf6a1f7937390903a41518715ef6f5
|
// adopted from https://github.com/golang/go/commit/8bcf2834afdf6a1f7937390903a41518715ef6f5
|
||||||
backConnCloseCh := make(chan struct{})
|
backConnCloseCh := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
// Ensure that the cancelation of a request closes the backend.
|
// Ensure that the cancellation of a request closes the backend.
|
||||||
// See issue https://golang.org/issue/35559.
|
// See issue https://golang.org/issue/35559.
|
||||||
select {
|
select {
|
||||||
case <-req.Context().Done():
|
case <-req.Context().Done():
|
||||||
|
@ -457,7 +457,7 @@ func (p ConnectionPolicy) SettingsEmpty() bool {
|
|||||||
p.InsecureSecretsLog == ""
|
p.InsecureSecretsLog == ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// SettingsEmpty returns true if p's settings (fields
|
// SettingsEqual returns true if p's settings (fields
|
||||||
// except the matchers) are the same as q.
|
// except the matchers) are the same as q.
|
||||||
func (p ConnectionPolicy) SettingsEqual(q ConnectionPolicy) bool {
|
func (p ConnectionPolicy) SettingsEqual(q ConnectionPolicy) bool {
|
||||||
p.MatchersRaw = nil
|
p.MatchersRaw = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user