fix: read starttedAt with mutex on lifecycle
This commit is contained in:
@@ -181,5 +181,7 @@ func isClosedError(err error) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (l *lifecycle) StartedAt() time.Time {
|
func (l *lifecycle) StartedAt() time.Time {
|
||||||
|
l.mu.Lock()
|
||||||
|
defer l.mu.Unlock()
|
||||||
return l.startedAt
|
return l.startedAt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user