Skip to content

Commit

Permalink
fix(examples): Fix autoreload example (#798) (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarmathe committed Nov 1, 2021
1 parent debcafe commit 8508f36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/src/autoreload/server.rs
Expand Up @@ -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)?,
);
Expand Down

0 comments on commit 8508f36

Please sign in to comment.