use std::collections::HashMap; use futures_util::future; use futures_util::future::BoxFuture; use rkyv::Archived; use crate::actors::Actor; use crate::db::ArchivedValue; use crate::resources::state::State; pub struct Dummy { name: String, params: HashMap, } impl Dummy { pub fn new(name: String, params: HashMap) -> Self { Self { name, params } } } impl Actor for Dummy { fn apply(&mut self, state: ArchivedValue) -> BoxFuture<'static, ()> { tracing::info!(name=%self.name, params=?self.params, ?state, "dummy actor updating state"); Box::pin(future::ready(())) } }