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 2 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

Comment options

You must be logged in to vote
0 replies
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!
6 participants
Converted from issue

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