From c3b3505eac87863fa164d3443031bbdc57892059 Mon Sep 17 00:00:00 2001 From: citrons Date: Sat, 7 Jun 2025 19:23:33 -0500 Subject: fix double callback in ObjectCache.Fetch --- client/object/object.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/object/object.go b/client/object/object.go index 5215993..2e0d83b 100644 --- a/client/object/object.go +++ b/client/object/object.go @@ -43,8 +43,9 @@ func (oc *ObjCache) Fetch(id string, callback func(*proto.Object)) { callback(nil) } }) + } else { + callback(&entry.o) } - callback(&entry.o) } func (oc *ObjCache) Watch(id string) { -- cgit v1.2.3