Esempio n. 1
0
func init() {
	gateway.ParseFlags()
	if !gateway.Options.RunSwaggerServer {
		gateway.ValidateFlags()
	}

	gateway.EnsureServerUlimit()
	debug.SetGCPercent(800) // same env GOGC. in golang1.7, we needn't concern about this
}
Esempio n. 2
0
func init() {
	gateway.EnsureServerUlimit()
	debug.SetGCPercent(800) // same as env GOGC
}