RircdState::run()

This commit is contained in:
some body 2021-09-16 15:08:35 -05:00
parent eb497a5468
commit b28e25eea3
1 changed files with 2 additions and 2 deletions

View File

@ -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 |"),