summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-07 19:23:33 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 19:23:33 -0500
commitc3b3505eac87863fa164d3443031bbdc57892059 (patch)
tree1377ab413e772393ab57ad697b4a6740eb2bda2d /client
parent1186ddcc211f33ea21d7679a3a4a80847434df94 (diff)
fix double callback in ObjectCache.Fetch
Diffstat (limited to 'client')
-rw-r--r--client/object/object.go3
1 files changed, 2 insertions, 1 deletions
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) {