TO SQUASH cached ctx.
parent
71b50fdae8
commit
0c9516051b
|
@ -160,7 +160,7 @@ async def maybe_open_ctx(
|
||||||
log.info(f'Reusing cached feed for {key}')
|
log.info(f'Reusing cached feed for {key}')
|
||||||
try:
|
try:
|
||||||
cache.users += 1
|
cache.users += 1
|
||||||
yield True, value
|
yield value
|
||||||
finally:
|
finally:
|
||||||
cache.users -= 1
|
cache.users -= 1
|
||||||
if cache.users == 0:
|
if cache.users == 0:
|
||||||
|
|
Loading…
Reference in New Issue