-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Extract common parts of replay code #1288
Conversation
.validate(envelope) | ||
.flatMap { | ||
case Accepted => | ||
accepted(envelope) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at diffs of the the code that were in the handlers and the only difference was how the Accepted
case was handled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, seemed that would be the case.
@@ -726,6 +491,8 @@ private[projection] object DynamoDBProjectionImpl { | |||
import DynamoDBOffsetStore.Validation._ | |||
implicit val ec: ExecutionContext = system.executionContext | |||
|
|||
// This is similar to DynamoDBProjectionImpl.replayIfPossible but difficult to extract common parts | |||
// since this is flow processing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the flow handler I didn't see an easy way to reuse the same code so kept it as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.