From bb398cdb2ab02d06cd334b9c6d86a967597c9ea4 Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Mon, 2 Jan 2023 14:27:24 +0100 Subject: [PATCH] Update ocache ObjectLocker --- common/app/ocache/ocache.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/app/ocache/ocache.go b/common/app/ocache/ocache.go index 04575750..fa7a63f3 100644 --- a/common/app/ocache/ocache.go +++ b/common/app/ocache/ocache.go @@ -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 {