Closed rogierknoester closed 8 months ago
Merging #81 (8d2ce5e) into main (164070d) will increase coverage by
0.60%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #81 +/- ##
==========================================
+ Coverage 83.77% 84.38% +0.60%
==========================================
Files 21 21
Lines 2120 2196 +76
==========================================
+ Hits 1776 1853 +77
+ Misses 344 343 -1
Files | Coverage Δ | |
---|---|---|
src/persist/event_stream.rs | 93.61% <100.00%> (+6.52%) |
:arrow_up: |
src/persist/replay.rs | 92.59% <100.00%> (+4.24%) |
:arrow_up: |
LGTM, thanks for the help @rogierknoester
An attempt at implementing upcasting in query replays. I think this implementation has the least amount of breaking changes without, it requires that
ReplayStream
accepts upcasters in itsnext(...)
function. Another approach could be to have a method likenext_with_upcasting(...)
. If that is preferred, I can change it. Other solutions like passing them tostream_all_events(...)
would require updating other crates and possibly breaking people's own implementations of event repositories.Let me know if I missed something :)