From ded64e1cf0be68e91a5046ab3af705055fee9b17 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 31 Jan 2021 22:55:52 +0900 Subject: [PATCH] Add USER_CHAN --- plume-models/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plume-models/src/lib.rs b/plume-models/src/lib.rs index 36380634..8bfb2002 100755 --- a/plume-models/src/lib.rs +++ b/plume-models/src/lib.rs @@ -21,6 +21,7 @@ use once_cell::sync::Lazy; use plume_common::activity_pub::inbox::InboxError; use posts::PostEvent; use riker::actors::{channel, ActorSystem, ChannelRef, SystemBuilder}; +use users::UserEvent; #[cfg(not(any(feature = "sqlite", feature = "postgres")))] compile_error!("Either feature \"sqlite\" or \"postgres\" must be enabled for this crate."); @@ -40,6 +41,9 @@ pub(crate) static ACTOR_SYS: Lazy = Lazy::new(|| { .expect("Failed to create actor system") }); +pub(crate) static USER_CHAN: Lazy> = + Lazy::new(|| channel("user_events", &*ACTOR_SYS).expect("Failed to create user channel")); + pub(crate) static POST_CHAN: Lazy> = Lazy::new(|| channel("post_events", &*ACTOR_SYS).expect("Failed to create post channel"));