MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / test_event_handler2

Method test_event_handler2

library/src/services/handlers.rs:124–138  ·  view source on GitHub ↗
(
        _event: BoardCreated,
        context: AtomicContextManager,
    )

Source from the content-addressed store, hash-verified

122 })
123 }
124 pub fn test_event_handler2(
125 _event: BoardCreated,
126 context: AtomicContextManager,
127 ) -> Future<ServiceResponse> {
128 Box::pin(async move {
129 let mut uow =
130 UnitOfWork::<Repository<BoardAggregate>>::new(context.clone())
131 .await?;
132
133 println!("You got here too!");
134 uow.commit().await?;
135
136 Ok(ServiceResponse::Empty(()))
137 })
138 }
139}

Callers

nothing calls this directly

Calls 1

commitMethod · 0.45

Tested by

no test coverage detected