chore: Fix routeguide example warning (#807)

This commit is contained in:
Lucio Franco
2021-10-22 11:17:04 -04:00
committed by GitHub
parent 3ab00f304d
commit bbcacd0625
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let uds = UnixListener::bind(path)?;
async_stream::stream! {
while let item = uds.accept().map_ok(|(st, _)| unix::UnixStream(st)).await {
loop {
let item = uds.accept().map_ok(|(st, _)| unix::UnixStream(st)).await;
yield item;
}
}