mirror of
https://github.com//cppla/ServerStatus
synced 2026-08-11 14:53:59 +08:00
降低状态持久化写盘频率
This commit is contained in:
@@ -98,7 +98,6 @@ func (a *App) executeSSLCheck(key string, config SSLCertConfig) {
|
||||
if err != nil {
|
||||
state.LastError = err.Error()
|
||||
a.certMu.Unlock()
|
||||
a.wakeStatsWriter()
|
||||
return
|
||||
}
|
||||
state.ExpireTS = expireTS
|
||||
@@ -126,7 +125,6 @@ func (a *App) executeSSLCheck(key string, config SSLCertConfig) {
|
||||
}
|
||||
}
|
||||
a.certMu.Unlock()
|
||||
a.wakeStatsWriter()
|
||||
|
||||
for _, alert := range alerts {
|
||||
if err := a.sendCallback(config.Callback, alert.message, "ServerStatusSSL"); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user