Use more "hierarchical" schema for fsp shm segment names

rekt_pps
Tyler Goodlet 2023-04-18 19:12:53 -04:00
parent adb62dc7b4
commit 6008497b89
1 changed files with 3 additions and 2 deletions

View File

@ -179,8 +179,9 @@ def mk_fsp_shm_key(
target: Fsp target: Fsp
) -> str: ) -> str:
uid = tractor.current_actor().uid actor_name, uuid = tractor.current_actor().uid
return f'{sym}.fsp.{target.name}.{".".join(uid)}' uuid_snip: str = uuid[:16]
return f'piker.{actor_name}[{uuid_snip}].{sym}.{target.name}'
def maybe_mk_fsp_shm( def maybe_mk_fsp_shm(