Go multi-line-style tuples in `maybe_enter_context()`
Allows for an inline comment of the first "cache hit" bool element.multicast_revertable_streams
parent
2536c5b3d2
commit
20628cc0b8
|
@ -289,7 +289,10 @@ async def maybe_open_context(
|
|||
)
|
||||
_Cache.users += 1
|
||||
lock.release()
|
||||
yield False, yielded
|
||||
yield (
|
||||
False, # cache_hit = "no"
|
||||
yielded,
|
||||
)
|
||||
|
||||
else:
|
||||
_Cache.users += 1
|
||||
|
@ -303,7 +306,10 @@ async def maybe_open_context(
|
|||
# f'{ctx_key!r} -> {yielded!r}\n'
|
||||
)
|
||||
lock.release()
|
||||
yield True, yielded
|
||||
yield (
|
||||
True, # cache_hit = "yes"
|
||||
yielded,
|
||||
)
|
||||
|
||||
finally:
|
||||
_Cache.users -= 1
|
||||
|
|
Loading…
Reference in New Issue