示例#1
0
文件: main.go 项目: funkygao/gafka
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
}
示例#2
0
文件: main.go 项目: chendx79/gafka
func init() {
	gateway.ParseFlags()
	gateway.ValidateFlags()
}