prololo: switch to tokio async channel

This commit is contained in:
Antoine Martin 2021-09-12 19:17:13 +02:00
parent 0837b07a9e
commit a402029dd2
4 changed files with 23 additions and 13 deletions

View file

@ -1,9 +1,8 @@
use std::sync::{mpsc::SyncSender};
mod github;
pub use github::{github_webhook, GitHubEvent};
use tokio::sync::mpsc::UnboundedSender;
pub struct EventSender(pub SyncSender<Event>);
pub struct EventSender(pub UnboundedSender<Event>);
#[derive(Debug)]
pub enum Event {