Add Prefork support for Windows

pull/502/head
Fenny 2020-06-22 16:07:38 +02:00
parent a72ce156c5
commit 67fefdd5d8
1 changed files with 3 additions and 3 deletions

6
app.go
View File

@ -208,14 +208,14 @@ var (
)
var (
preforkFlag, childFlag = "-prefork", "-child"
prefork, child bool
preforkFlag = "-prefork"
preforkEnabled bool
)
func init() { //nolint:gochecknoinits
// Definition flag to not break the program when the user adds their own flags
// and runs `flag.Parse()`
flag.BoolVar(&prefork, preforkFlag[1:], false, "use prefork")
flag.BoolVar(&preforkEnabled, preforkFlag[1:], false, "use prefork")
}
// New creates a new Fiber named instance.