Avoid RuntimeError by not using current_actor's uid

246_facepalm_backup
overclockworked64 2021-10-16 17:39:36 +02:00 committed by Tyler Goodlet
parent 2815f1c343
commit 73cbb2388a
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] = {} 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: if not names:
suffix = '_'.join(uid) suffix = '_'.join(uid)