RircdState::run()
This commit is contained in:
parent
eb497a5468
commit
b28e25eea3
|
@ -1,6 +1,6 @@
|
|||
use eyre::Result;
|
||||
use async_trait::async_trait;
|
||||
use tokio::task::JoinHandle;
|
||||
use tokio::task::spawn_local;
|
||||
use std::time::Instant;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::oneshot;
|
||||
|
@ -42,7 +42,7 @@ impl RircdState {
|
|||
tokio::spawn(endpoint.clone().listen(success_status_send));
|
||||
//TODO color err msg
|
||||
//TODO paralelize and sync at the end
|
||||
tokio::task::spawn_local(async move {
|
||||
spawn_local(async move {
|
||||
println!("starting {} | {}", endpoint_name,
|
||||
match success_status_recv.await {
|
||||
Ok(_) => format!("SUCCEEDED |"),
|
||||
|
|
Loading…
Reference in New Issue