fix syntax problem for task::sleep

pull/688/head
ninj 5 years ago committed by GitHub
parent 1ababac97f
commit b258215952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -90,7 +90,7 @@ the connection to the protocol handler, like this:
# let mut incoming = listener.incoming();
while let Some(stream) = incoming.next().await {
task::spawn(async {
task:sleep(Duration::from_secs(10)).await; // 1
task::sleep(Duration::from_secs(10)).await; // 1
connection_loop(stream).await;
});
}

Loading…
Cancel
Save