Skip to content

Commit 853cc9e

Browse files
committed
return Result from broker
1 parent 15cac77 commit 853cc9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/tutorial/handling_disconnection.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ async fn broker(mut events: Receiver<Event>) {
260260
drop(disconnect_sender); // 6
261261
while let Some((_name, _pending_messages)) = disconnect_receiver.next().await {
262262
}
263+
264+
Ok(())
263265
}
264266

265267
fn spawn_and_log_error<F>(fut: F) -> task::JoinHandle<()>

0 commit comments

Comments
 (0)