gofmt格式化

This commit is contained in:
wujia 2021-04-07 20:52:38 +08:00
parent 802187abc4
commit 90f4bba8fd
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ func (s *Server) Start() error {
// If this is a child process, it then notifies its parent exit.
if gproc.IsChild() {
gtimer.SetTimeout(time.Duration(s.config.GracefulTimeout) * time.Second, func() {
gtimer.SetTimeout(time.Duration(s.config.GracefulTimeout)*time.Second, func() {
if err := gproc.Send(gproc.PPid(), []byte("exit"), adminGProcCommGroup); err != nil {
//glog.Error("server error in process communication:", err)
}

View File

@ -268,7 +268,7 @@ func NewConfig() ServerConfig {
FormParsingMemory: 1024 * 1024, // 1MB
Rewrites: make(map[string]string),
Graceful: false,
GracefulTimeout: 2, // seconds
GracefulTimeout: 2, // seconds
}
}