-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Implement runner.addresses property #3037
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3037 +/- ##
==========================================
- Coverage 98.13% 98.09% -0.04%
==========================================
Files 42 42
Lines 7721 7723 +2
Branches 1345 1346 +1
==========================================
- Hits 7577 7576 -1
- Misses 49 51 +2
- Partials 95 96 +1
Continue to review full report at Codecov.
|
How about returning the addresses as |
|
👍 I don’t know how Endpoint fits into aiothttp’s naming but yeah. That looks good. Gonna be really easy to implement with attrs. ;) |
Hmm. IPv6 has additional |
@@ -148,12 +148,18 @@ def __init__(self, *, handle_signals=False, **kwargs): | |||
self._handle_signals = handle_signals | |||
self._kwargs = kwargs | |||
self._server = None | |||
self._sites = set() | |||
self._sites = [] |
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.
@asvetlov what is the motivation behind this?
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.
To keep a stable order of returned addresses.
Registering a new site in a runner is not a bottleneck, we can live with O(n) for it.
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.
Ah, okay. I just didn't know why you'd do this without any comments or commit description :)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Fix #3036