Skip to content

Commit

Permalink
更新 command_center.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
shishanyue authored Apr 30, 2024
1 parent 06bf4ea commit fdfc606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/command_center.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::{
};

pub async fn command_center(shared_connection_mg: Arc<ConnectionManager>) {
std::thread::sleep(Duration::from_millis(u64::MAX));
let mut event_receiver = EVENT_CHANNEL_MULTIPLE.1.resubscribe();

//MODULE_MANAGER
Expand All @@ -22,7 +23,7 @@ pub async fn command_center(shared_connection_mg: Arc<ConnectionManager>) {

std_in.read_line(&mut admin_command).unwrap();
let admin_command = admin_command.trim().to_string();
println!("Ok");
//println!("Ok");
loop {
match event_receiver.recv().await {
Ok(event) => match event.event_type {
Expand Down

0 comments on commit fdfc606

Please sign in to comment.