You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect you'll need to add tokio::run(server). as the last line. The serve.for_each(...) part is creating a new Stream, which needs to be spawned on a runtime: https://tokio.rs/docs/getting-started/hello-world/
(I agree though, that the example should include that line)
I'd like to be able to use the lower level api for servers as is described in this source code comment: https://github.com/softprops/hyperlocal/blob/master/src/server/mod.rs#L163-L207
Below i added a main function for that example code.... and.... it doesn't work. It compiles. It runs and exits immediately.
The text was updated successfully, but these errors were encountered: