Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit d18e777

Browse files
committed
store self
1 parent 2d443df commit d18e777

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gapic/utils/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ def wrapper(self, *, collisions, **kwargs):
8181

8282
# 3. Check Cache
8383
if key in context_cache:
84-
return context_cache[key]
84+
return context_cache[key][0]
8585

8686
# 4. Execute the actual function
8787
# We ensure context_cache is passed down to the recursive calls
8888
result = func(self, collisions=collisions, **kwargs)
8989

9090
# 5. Update Cache
91-
context_cache[key] = result
91+
context_cache[key] = (result, self)
9292
return result
9393

9494
return wrapper

0 commit comments

Comments
 (0)