Update ocache ObjectLocker

This commit is contained in:
mcrakhman 2023-01-02 14:27:24 +01:00 committed by Mikhail Iudin
parent 54813ccdec
commit bb398cdb2a
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -74,6 +74,7 @@ type Object interface {
}
type ObjectLocker interface {
Object
Locked() bool
}
@ -87,9 +88,9 @@ type entry struct {
refCount uint32
isClosing bool
load chan struct{}
loadErr error
value Object
close chan struct{}
loadErr error
value Object
close chan struct{}
}
func (e *entry) locked() bool {