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"));