You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Because of `select`, we can't use a `while let` loop, so we desugar it further into a `loop`.
109
-
3. In the shutdown case we use `match void {}` as a statically-checked `unreachable!()`.
109
+
3. Function fuse() is used to turn any `Stream` into a `FusedStream`. This is used for fusing a stream such that poll_next will never again be called once it has finished.
110
+
4. In the shutdown case we use `match void {}` as a statically-checked `unreachable!()`.
110
111
111
112
Another problem is that between the moment we detect disconnection in `connection_writer_loop` and the moment when we actually remove the peer from the `peers` map, new messages might be pushed into the peer's channel.
112
113
To not lose these messages completely, we'll return the messages channel back to the broker.
0 commit comments