Compare commits
No commits in common. "main" and "v1.5.1" have entirely different histories.
4
go.mod
4
go.mod
@ -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
|
||||||
|
|||||||
6
main.go
6
main.go
@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user