cedrus-core 0.1.0

Business logic and authorization engine for Cedrus.
Documentation
use crate::Event;

use super::{Op, PubSub, PubSubError};

pub struct DummyPubSub;

impl DummyPubSub {
    pub fn new() -> Self {
        Self
    }
}

#[async_trait::async_trait]
impl PubSub for DummyPubSub {
    async fn subscribe(&self, _ops: &[Op<'_>]) {}

    async fn publish(&self, _msg: Event) -> Result<(), PubSubError> {
        Ok(())
    }
}