huskies: merge 906
This commit is contained in:
@@ -29,6 +29,13 @@ mod tests;
|
||||
|
||||
pub use init::init;
|
||||
|
||||
/// Subscribe to CRDT state-transition events.
|
||||
///
|
||||
/// Returns `None` if the CRDT layer has not been initialised yet.
|
||||
pub fn subscribe() -> Option<broadcast::Receiver<super::types::CrdtEvent>> {
|
||||
statics::CRDT_EVENT_TX.get().map(|tx| tx.subscribe())
|
||||
}
|
||||
|
||||
pub(super) use apply::{apply_and_persist, emit_event};
|
||||
pub(super) use indices::{
|
||||
rebuild_active_agent_index, rebuild_agent_throttle_index, rebuild_gateway_project_index,
|
||||
|
||||
Reference in New Issue
Block a user