Skip to content

Commit

Permalink
Sync port forward wrapping should call async_run_forever (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson authored Jan 27, 2025
1 parent 2adf015 commit 52a2356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kr8s/portforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 52a2356

Please sign in to comment.