-
Notifications
You must be signed in to change notification settings - Fork 174
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
fix: remove sockaddrs field from Target
#1412
fix: remove sockaddrs field from Target
#1412
Conversation
4c21cf4
to
fcf3da2
Compare
Target
Target
- remove the `sockaddrs` field from `Target`. - resolve the `sockaddrs` only in `try_connect_over_tcp`, the only place it's required. - do not resolved `sockaddrs` on `build_with_stream`.
fcf3da2
to
dd0bec4
Compare
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.
LGTM
I was thinking about how to prevent regressions on this (as it could "leak" connection data), and I'll try to create a test for it in a new commit, then it should be ready to go. |
@oleonardolima are you happy with this PR without the extra tests you mentioned? |
Yes, I can add it later in another PR. |
- remove the `sockaddrs` field from `Target`. - resolve the `sockaddrs` only in `try_connect_over_tcp`, the only place it's required. - do not resolved `sockaddrs` on `build_with_stream`.
fixes #1411