prololo: switch to tokio async channel
This commit is contained in:
parent
0837b07a9e
commit
a402029dd2
4 changed files with 23 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue