diff --git a/caddy/frankenphp/main.go b/caddy/frankenphp/main.go index afe653c489..e212311d66 100644 --- a/caddy/frankenphp/main.go +++ b/caddy/frankenphp/main.go @@ -3,8 +3,7 @@ package main import ( caddycmd "github.com/caddyserver/caddy/v2/cmd" - - _ "go.uber.org/automaxprocs" + "go.uber.org/automaxprocs/maxprocs" // plug in Caddy modules here. _ "github.com/caddyserver/caddy/v2/modules/standard" @@ -13,6 +12,10 @@ import ( _ "github.com/dunglas/vulcain/caddy" ) +func init() { + maxprocs.Set() +} + func main() { caddycmd.Main() }