2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-30 17:25:32 +00:00

Merge pull request #989 from hayaoR/fixtutorial

Remove the numbering of the remaining previous chapters
This commit is contained in:
Josh Triplett 2022-06-02 09:53:12 -07:00 committed by GitHub
commit dc7d520930
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,8 +124,8 @@ async fn broker_loop(mut events: Receiver<Event>) -> Result<()> {
Entry::Occupied(..) => (),
Entry::Vacant(entry) => {
let (client_sender, client_receiver) = mpsc::unbounded();
entry.insert(client_sender); // 4
spawn_and_log_error(connection_writer_loop(client_receiver, stream)); // 5
entry.insert(client_sender);
spawn_and_log_error(connection_writer_loop(client_receiver, stream));
}
}
}