RircdState::run() added Shutdown pocl

This commit is contained in:
some body 2021-09-16 17:13:13 -05:00
parent d04b4bdb3e
commit c38b3b5d1c
1 changed files with 29 additions and 0 deletions

View File

@ -68,6 +68,35 @@ impl RircdState {
//> who needs a daemon that does nothing and where nothing can be configured to be done
//////////////////////////////////////////////
//
// T O D O
//
// Add a mechanism to on received
// Event::Message's to only send
// them to ALL other endpoints
// except to that where it originated
// from TO PREVENT ECHOING
//
// Eg over a .send_from field
// eg:
//
// match event.kind {
// Message(msg) => {
// for ep_rc in endpoints_receivers {
// if ep_rc != msg.from {
// ep_rc.send(msg)
// }
// }
// },
// }
//
// ^^^ FOR THIS maybe having a wrapper around (R) from
// the endpoint_receivers[R] is required. That contains
// a ref to the endpoint or sth ... idk
//
//////////////////////////////////////////////
loop {
println!("received event");
tokio::select! {