Avoid RuntimeError by not using current_actor's uid
parent
2815f1c343
commit
73cbb2388a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue