Avoid RuntimeError by not using current_actor's uid

patch-async-enter-all
overclockworked64 2021-10-16 17:39:36 +02:00
parent dc8ccca8be
commit 0f613050e1
No known key found for this signature in database
GPG Key ID: 0E4A3AD9DB596812
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ async def open_actor_cluster(
]:
portals: dict[str, tractor.Portal] = {}
uid = tractor.current_actor().uid
uid = __import__('random').randint(0, 2 ** 16)
# uid = tractor.current_actor().uid
if not names:
suffix = '_'.join(uid)