Skip to content

Conversation

@patriknw
Copy link
Contributor

  • for replicated event sourcing

@patriknw patriknw force-pushed the wip-res-intercept2-patriknw branch from 3d9afbb to 63c7d68 Compare November 5, 2025 14:09
Copy link
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far

val adaptedEvent = adaptEvent(currentState.state, event)

eventsToPersist = EventToPersist(adaptedEvent, evtManifest, metadata) :: eventsToPersist
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this style of mutation from inside foreach, vs a fold or something more pure, but I guess it is to keep it consistent since it needs to mutate multiple things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that style is taken from the existing handleEventPersistAll
it's mutating several things, including external things in the setup

@patriknw
Copy link
Contributor Author

added tests, and found/fixed one issue

@patriknw patriknw marked this pull request as ready for review November 13, 2025 16:27
@johanandren johanandren merged commit e444db6 into main Nov 18, 2025
9 checks passed
@johanandren johanandren deleted the wip-res-intercept2-patriknw branch November 18, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants