From 18a1701b4d285808700d354f2db20288eb336ddd Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Mon, 27 Jan 2025 17:41:02 +0000 Subject: [PATCH] Sync port forward wrapping should call async_run_forever --- kr8s/portforward.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kr8s/portforward.py b/kr8s/portforward.py index d7e9049..135ea4c 100644 --- a/kr8s/portforward.py +++ b/kr8s/portforward.py @@ -28,7 +28,7 @@ def __exit__(self, *args, **kwargs): return run_sync(self.__aexit__)(*args, **kwargs) def run_forever(self): - return run_sync(self.run_forever)() # type: ignore + return run_sync(self.async_run_forever)() # type: ignore def start(self): """Start a background thread with the port forward running."""