primait / event_sourcing.rs

event sourcing framework in rust
51 stars 4 forks source link

make the AggregateManager deref blanket implementation work for smart pointers #187

Closed angelo-rendina-prima closed 9 months ago

angelo-rendina-prima commented 9 months ago

The blanket implementation should be generic in the EventStore. As it is currently written, it works for (smart) pointers to trait objects ONLY, and not for concrete types that implement the EventStore trait, e.g. Arc<dyn EventStore> receives the target implementation, whereas Arc<PgStore> does not