Update ocache ObjectLocker

This commit is contained in:
mcrakhman 2023-01-02 14:27:24 +01:00
parent 8680c24329
commit 987bd0154f
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

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 {