aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddytls/connpolicy.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-09-14 18:05:45 -0600
committerMatthew Holt <[email protected]>2019-09-14 18:05:45 -0600
commitf15f0d5839479f8511621b88fa4bdcca3b89cc32 (patch)
treec42f522dcaed82c0dbab158c552e255050e1cb8a /modules/caddytls/connpolicy.go
parente73b117332a5606a986ee7e03e6f4b0cea7871c9 (diff)
downloadcaddy-f15f0d5839479f8511621b88fa4bdcca3b89cc32.tar.gz
caddy-f15f0d5839479f8511621b88fa4bdcca3b89cc32.zip
Eliminate some TODOs
Diffstat (limited to 'modules/caddytls/connpolicy.go')
-rw-r--r--modules/caddytls/connpolicy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddytls/connpolicy.go b/modules/caddytls/connpolicy.go
index c95236969..7d8630801 100644
--- a/modules/caddytls/connpolicy.go
+++ b/modules/caddytls/connpolicy.go
@@ -46,7 +46,7 @@ func (cp ConnectionPolicies) TLSConfig(ctx caddy.Context) (*tls.Config, error) {
}
cp[i].matchers = append(cp[i].matchers, val.(ConnectionMatcher))
}
- cp[i].Matchers = nil // allow GC to deallocate - TODO: Does this help?
+ cp[i].Matchers = nil // allow GC to deallocate
// certificate selector
if pol.CertSelection != nil {
@@ -55,7 +55,7 @@ func (cp ConnectionPolicies) TLSConfig(ctx caddy.Context) (*tls.Config, error) {
return nil, fmt.Errorf("loading certificate selection module: %s", err)
}
cp[i].certSelector = val.(certmagic.CertificateSelector)
- cp[i].CertSelection = nil // allow GC to deallocate - TODO: Does this help?
+ cp[i].CertSelection = nil // allow GC to deallocate
}
}