fix: read starttedAt with mutex on lifecycle

This commit is contained in:
2026-07-14 11:42:26 +07:00
parent f1df3d26c2
commit 6ec57268db
+2
View File
@@ -181,5 +181,7 @@ func isClosedError(err error) bool {
}
func (l *lifecycle) StartedAt() time.Time {
l.mu.Lock()
defer l.mu.Unlock()
return l.startedAt
}