lib.rs: added handing for program
This commit is contained in:
parent
844f6214f8
commit
184e50d156
|
@ -15,7 +15,7 @@ use std::{
|
||||||
str::from_utf8,
|
str::from_utf8,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
use tokio::sync::Mutex;
|
use tokio::{signal, sync::Mutex};
|
||||||
pub mod client;
|
pub mod client;
|
||||||
mod test;
|
mod test;
|
||||||
|
|
||||||
|
@ -190,6 +190,7 @@ impl BunBunWorker {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
signal::ctrl_c().await.expect("failed to listen for event");
|
||||||
// TODO hand the program
|
// TODO hand the program
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue