Skip to content

"make_service_fn" - gone. Where is it? #3471

Answered by seanmonstar
ally9335 asked this question in Q&A
Discussion options

You must be logged in to vote

The Server and make_service_fn are gone, you should use a loop { let conn = listener.accept().await; ... } instead. See https://hyper.rs/guides/1/upgrading/

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@wiseaidev
Comment options

Answer selected by dswij
Comment options

You must be logged in to vote
1 reply
@dswij
Comment options

dswij Jul 5, 2024
Collaborator

Comment options

You must be logged in to vote
1 reply
@Kyu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
C-bug Category: bug. Something is wrong. This is bad!
7 participants
Converted from issue

This discussion was converted from issue #3468 on December 09, 2023 13:34.