Skip to content
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

feat(server): remove addrstream struct #2869

Merged
merged 3 commits into from
Jun 8, 2022

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented May 24, 2022

Remove AddrStream type, it provides no benefit over tokio::net::TcpStream.

Closes issue #2850

This is my first contribution to this project, so I may have missed something. I am happy to take any feedback. Thanks!

Notes

  • I'm not quite sure if my changes to AddrIncoming.poll_next_ method are correct, or if that method is actually used anywhere.
  • AddrStream is used in documentation related to make_service, but as I understand it, make_service will be removed anyway in a different PR. Ref issue Remove the MakeService stuff #2854

@seanmonstar
Copy link
Member

Awesome, thanks for starting! I need to get the branch ready to start the new version, within the next day or two, and then I'll just start blasting merging :D

@oddgrd
Copy link
Contributor Author

oddgrd commented May 24, 2022

Cool! I'd love to work on some of the other easy issues from your stream tommorow.

I see the CI failed because AddrStream is imported in the make_service examples. I'll fix it tommorow.

remove addrstream type, it provides no benefit over tokio::net::tcpstream

closes issue hyperium#2850
@oddgrd
Copy link
Contributor Author

oddgrd commented May 25, 2022

I updated the make_service doctests to use tokio::net::TcpStream as well, so now the tests pass. I'll make a new PR for #2854 and delete them. 😅

@seanmonstar seanmonstar linked an issue May 25, 2022 that may be closed by this pull request
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first contrib! :D

@seanmonstar seanmonstar merged commit e9cab49 into hyperium:master Jun 8, 2022
@oddgrd oddgrd deleted the remove_addrstream branch June 9, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chop AddrStream out completely
2 participants