diff options
author | Matthew Holt <[email protected]> | 2019-09-14 18:05:45 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2019-09-14 18:05:45 -0600 |
commit | f15f0d5839479f8511621b88fa4bdcca3b89cc32 (patch) | |
tree | c42f522dcaed82c0dbab158c552e255050e1cb8a /modules/caddyhttp/routes.go | |
parent | e73b117332a5606a986ee7e03e6f4b0cea7871c9 (diff) | |
download | caddy-f15f0d5839479f8511621b88fa4bdcca3b89cc32.tar.gz caddy-f15f0d5839479f8511621b88fa4bdcca3b89cc32.zip |
Eliminate some TODOs
Diffstat (limited to 'modules/caddyhttp/routes.go')
-rw-r--r-- | modules/caddyhttp/routes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/routes.go b/modules/caddyhttp/routes.go index 1efbad6ff..108bb1524 100644 --- a/modules/caddyhttp/routes.go +++ b/modules/caddyhttp/routes.go @@ -91,7 +91,7 @@ func (routes RouteList) Provision(ctx caddy.Context) error { } routes[i].MatcherSets = append(routes[i].MatcherSets, matchers) } - routes[i].MatcherSetsRaw = nil // allow GC to deallocate - TODO: Does this help? + routes[i].MatcherSetsRaw = nil // allow GC to deallocate // handlers for j, rawMsg := range route.HandlersRaw { @@ -101,7 +101,7 @@ func (routes RouteList) Provision(ctx caddy.Context) error { } routes[i].Handlers = append(routes[i].Handlers, mh.(MiddlewareHandler)) } - routes[i].HandlersRaw = nil // allow GC to deallocate - TODO: Does this help? + routes[i].HandlersRaw = nil // allow GC to deallocate } return nil } |