"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
|
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
Dec 9, 2023
Replies: 2 comments 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dswij
-
Hey @ally9335 I found this in https://hyper.rs/guides/0.14/server |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Server
andmake_service_fn
are gone, you should use aloop { let conn = listener.accept().await; ... }
instead. See https://hyper.rs/guides/1/upgrading/