summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dunglas <kevin@dunglas.fr>2022-05-24 21:52:50 +0200
committerGitHub <noreply@github.com>2022-05-24 13:52:50 -0600
commit499ad6d182d6993b1d149a5ee96dbd37d14cacd7 (patch)
tree5897e4eb2cc7f4b3765c97921a63361bfeb0c649
parent8e6bc3608402da9fce3821944acc81d92f10c8e7 (diff)
core: Micro-optim in run() (#4810)
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 86935f8..d155092 100644
--- a/caddy.go
+++ b/caddy.go
@@ -442,7 +442,7 @@ func run(newCfg *Config, start bool) error {
// Start
err = func() error {
- var started []string
+ started := make([]string, 0, len(newCfg.apps))
for name, a := range newCfg.apps {
err := a.Start()
if err != nil {