-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename port_handler functions #8481
Conversation
5ec2d52
to
4703730
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8481 +/- ##
==========================================
+ Coverage 90.84% 90.85% +0.01%
==========================================
Files 339 339
Lines 20855 20852 -3
==========================================
Hits 18946 18946
+ Misses 1909 1906 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
1d9d9fa
to
fbbd9e1
Compare
@@ -151,8 +151,6 @@ def get_socket(self) -> socket.socket: | |||
|
|||
def get_connection_info(self) -> EvaluatorConnectionInfo: | |||
return EvaluatorConnectionInfo( | |||
self.host, | |||
self.port, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good PR @jonathan-eq ! Just update the commit message, where you describe find_available_socket API and do the rebase. 🚀
fbbd9e1
to
9bfe22c
Compare
This commit changes `port_handler.py` -> `net_utils.py` and cleans up the functions in the file. `find_available_port` is now called `find_available_socket`, and only returns the socket. The caller can use the socket object to get the attached hostname and port, so this is no longer explicitly returned.
9bfe22c
to
71f870c
Compare
Issue
Resolves #8407
Approach
Short description of the approach
(Screenshot of new behavior in GUI if applicable)
When applicable