RircdState::run() result channel

This commit is contained in:
some body 2021-09-16 16:08:22 -05:00
parent 62d3493447
commit 6ce23674ee
2 changed files with 2 additions and 2 deletions

View File

@ -12,5 +12,5 @@ pub enum EventKind {
pub struct Event { pub struct Event {
pub kind: EventKind, pub kind: EventKind,
pub result_receiver: oneshot::Receiver<Result<()>>, pub result_sender: oneshot::Sender<Result<()>>,
} }

View File

@ -26,7 +26,7 @@ impl Endpoint for IrcEndpoint {
event_receiver.send( event_receiver.send(
Event { Event {
kind: EventKind::Message, kind: EventKind::Message,
result_receiver: r, event.result_sender.send(Ok(()),
}).await; }).await;
} }
} }