Use Task::discard in websocket example
This commit is contained in:
parent
629e795784
commit
714c4982d6
2 changed files with 5 additions and 10 deletions
|
|
@ -30,7 +30,6 @@ pub fn connect() -> impl Sipper<Never, Event> {
|
|||
tokio::time::sleep(tokio::time::Duration::from_secs(1))
|
||||
.await;
|
||||
|
||||
output.send(Event::Disconnected).await;
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue