Compare commits

..

No commits in common. "main" and "v1.5.1" have entirely different histories.
main ... v1.5.1

3 changed files with 3 additions and 7 deletions

BIN
gateway

Binary file not shown.

4
go.mod
View File

@ -7,8 +7,8 @@ require (
apigo.cc/go/config v1.5.1 apigo.cc/go/config v1.5.1
apigo.cc/go/log v1.5.5 apigo.cc/go/log v1.5.5
apigo.cc/go/redis v1.5.0 apigo.cc/go/redis v1.5.0
apigo.cc/go/service v1.5.12 apigo.cc/go/service v1.5.11
apigo.cc/go/starter v1.5.3 apigo.cc/go/starter v1.5.2
) )
require apigo.cc/go/jsmod v1.5.0 // indirect require apigo.cc/go/jsmod v1.5.0 // indirect

View File

@ -37,11 +37,7 @@ Matching Logic:
starter.Register("gateway-core", app, 100, 5*time.Second, 10*time.Second) starter.Register("gateway-core", app, 100, 5*time.Second, 10*time.Second)
// 4. 运行服务生命周期,响应 start/stop/reload 等命令 // 4. 运行服务生命周期,响应 start/stop/reload 等命令
if err := starter.Start(); err != nil { starter.Run()
log.DefaultLogger.Error("gateway start failed", "error", err)
return
}
starter.Wait()
log.DefaultLogger.Info("gateway process exited") log.DefaultLogger.Info("gateway process exited")
} }