diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-07 19:23:33 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-07 19:23:33 -0500 |
| commit | c3b3505eac87863fa164d3443031bbdc57892059 (patch) | |
| tree | 1377ab413e772393ab57ad697b4a6740eb2bda2d | |
| parent | 1186ddcc211f33ea21d7679a3a4a80847434df94 (diff) | |
fix double callback in ObjectCache.Fetch
| -rw-r--r-- | client/object/object.go | 3 |
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) { |
