From eef98bc8262670c9a17765a5fd8d08860195499d Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Wed, 2 Apr 2025 15:17:56 -0300 Subject: [PATCH] Dont use relative import on ringd --- tractor/ipc/_ringbuf/_ringd.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tractor/ipc/_ringbuf/_ringd.py b/tractor/ipc/_ringbuf/_ringd.py index 0568771c..16314c72 100644 --- a/tractor/ipc/_ringbuf/_ringd.py +++ b/tractor/ipc/_ringbuf/_ringd.py @@ -34,10 +34,8 @@ import trio import tractor from tractor.linux import send_fds, recv_fds -from . import ( - RBToken, - open_ringbuf as ipc_open_ringbuf -) +import tractor.ipc._ringbuf as ringbuf +from tractor.ipc._ringbuf import RBToken log = tractor.log.get_logger(__name__) @@ -141,7 +139,7 @@ async def _open_ringbuf( f'Tried to open_ringbuf but it doesn\'t exist: {name}' ) - with ipc_open_ringbuf( + with ringbuf.open_ringbuf( _root_key + name, buf_size=buf_size ) as token: