reduce diff

This commit is contained in:
silverwind
2026-02-19 04:18:37 +01:00
parent c1c36d1c2d
commit 97c1320234

View File

@@ -176,17 +176,15 @@ func (r *Reporter) Fire(entry *log.Entry) error {
}
func (r *Reporter) RunDaemon() {
if r.ctx.Err() != nil {
return
}
r.stateMu.RLock()
closed := r.closed
r.stateMu.RUnlock()
if closed {
return
}
if r.ctx.Err() != nil {
return
}
_ = r.ReportLog(false)
_ = r.ReportState()