Drop leftover print

maybe_cancel_the_cancel_
Tyler Goodlet 2021-12-23 11:54:24 -05:00
parent b1d72b77c9
commit 532974fb90
1 changed files with 1 additions and 2 deletions

View File

@ -170,7 +170,6 @@ async def maybe_open_context(
await _Cache.lock.acquire() await _Cache.lock.acquire()
ctx_key = (id(acm_func), key or tuple(kwargs.items())) ctx_key = (id(acm_func), key or tuple(kwargs.items()))
print(ctx_key)
value = None value = None
try: try:
@ -180,7 +179,7 @@ async def maybe_open_context(
value = _Cache.values[ctx_key] value = _Cache.values[ctx_key]
except KeyError: except KeyError:
log.info(f'Allocating new resource for {ctx_key}') log.info(f'Allocating new {acm_func} for {ctx_key}')
mngr = acm_func(**kwargs) mngr = acm_func(**kwargs)
# TODO: avoid pulling from ``tractor`` internals and # TODO: avoid pulling from ``tractor`` internals and