fix(examples): Fix autoreload example (#798) (#818)

This commit is contained in:
Cezar Mathe
2021-11-01 18:29:44 -04:00
committed by GitHub
parent debcafe08c
commit 8508f369c2
+1
View File
@@ -36,6 +36,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
match listenfd::ListenFd::from_env().take_tcp_listener(0)? {
Some(listener) => {
listener.set_nonblocking(true)?;
let listener = tokio_stream::wrappers::TcpListenerStream::new(
tokio::net::TcpListener::from_std(listener)?,
);