From 6e6baf250b471ec8c158e77ad07e2b6b91083881 Mon Sep 17 00:00:00 2001 From: overclockworked64 Date: Sat, 16 Oct 2021 17:50:36 +0200 Subject: [PATCH] Make sure the ID is a str --- tractor/_clustering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/_clustering.py b/tractor/_clustering.py index 37a03bb..8fabc00 100644 --- a/tractor/_clustering.py +++ b/tractor/_clustering.py @@ -25,7 +25,7 @@ async def open_actor_cluster( ]: portals: dict[str, tractor.Portal] = {} - uid = __import__('random').randint(0, 2 ** 16) + uid = str(__import__('random').randint(0, 2 ** 16)) # uid = tractor.current_actor().uid if not names: