完善续期调度生命周期和Web开关配置

This commit is contained in:
xuans committed 2026-08-31 01:09:04 +08:00
1 parent 1f987eb8be
commit f6ce85b174
7 files changed
+129 -5

No files matched your search

+3
View File
@@ -169,6 +169,9 @@ func (a *App) Close() error {
return nil
}
var first error
if a.Renewal != nil {
a.Renewal.Stop()
}
if a.HTTP != nil {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
if err := a.HTTP.Shutdown(ctx); err != nil && first == nil {