"make_service_fn" - gone. Where is it? #3471
|
Version Platform Description Now it's gone. There's no mention of it in the docs, no in the ChangeLog, nowhere. Where is it? How to convert this into |
Answered by
seanmonstar
Dec 9, 2023
Replies: 3 comments 3 replies
|
The |
1 reply
Answer selected by
dswij
|
Hey @ally9335 I found this in https://hyper.rs/guides/0.14/server |
1 reply
|
FWIW, the upgrading link above does not really discuss this. Perhaps it changed since linked? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Serverandmake_service_fnare gone, you should use aloop { let conn = listener.accept().await; ... }instead. See https://hyper.rs/guides/1/upgrading/