From 4fa901dbcb1c1e556ea0aa6eb5447f6f6850f9be Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 24 Aug 2022 15:28:26 -0400 Subject: [PATCH] Port to new `tractor._runtime` mod --- piker/data/_sharedmem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/data/_sharedmem.py b/piker/data/_sharedmem.py index 3794c46f..77fc5816 100644 --- a/piker/data/_sharedmem.py +++ b/piker/data/_sharedmem.py @@ -529,8 +529,8 @@ def open_shm_array( # pushing teardown calls onto actor context stack # TODO: make this a public API in ``tractor``.. - tractor._actor._lifetime_stack.callback(shmarr.close) - tractor._actor._lifetime_stack.callback(shmarr.destroy) + tractor._runtime._lifetime_stack.callback(shmarr.close) + tractor._runtime._lifetime_stack.callback(shmarr.destroy) return shmarr @@ -615,7 +615,7 @@ def attach_shm_array( _known_tokens[key] = token # "close" attached shm on process teardown - tractor._actor._lifetime_stack.callback(sha.close) + tractor._runtime._lifetime_stack.callback(sha.close) return sha