Compare commits

..

1 Commits

Author SHA1 Message Date
tiger_zhou
d25c600f40 项目名称及路径更改 2024-03-13 20:04:20 +08:00
2 changed files with 6 additions and 5 deletions

4
go.sum
View File

@ -1,6 +1,10 @@
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/yohamta/donburi v1.3.9 h1:sYAPaelSnxmoTGjgH9ZlYt4pUKrnwvAv4YGXxLZCK6E=
github.com/yohamta/donburi v1.3.9/go.mod h1:5QkyraUjkzbMVTD2b8jaPFy1Uwjm/zdFN1c1lZGaezg=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

View File

@ -77,9 +77,6 @@ type world struct {
cancel context.CancelFunc
done chan struct{} // 服务协程退出信号
// 世界异常记录
err any
}
// 新建一个组件类型
@ -282,11 +279,11 @@ func (w *world) run(ctx context.Context) {
// 世界运行异常处理
func (w *world) exception(err any) {
w.err = err
// 世界异常
// slog.Error("世界运行异常", "error", err, "stack", string(debug.Stack()))
w.updateState(WorldError)
// 关闭定时器
w.ticker.Stop()
// w.handleRequestAndEvent()
}
// 世界正常关闭逻辑