Skip to content
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

Use TimestampProvider in BatchingSqlJournal #5192

Conversation

MartijnSchoemaker
Copy link
Contributor

PR #5077 fixed using timestamp provider for SqlJournal.
With this new PR the timestamp provider will be used in BatchingSqlJournal as well.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM, but need to approve the public API changes via https://getakka.net/community/public-api-changes.html

@@ -1286,7 +1299,7 @@ private async Task<WriteMessagesResult> HandleWriteMessages(WriteMessages req, T
persistent = persistent.WithPayload(tagged.Payload);
}

WriteEvent(command, persistent.WithTimestamp(DateTime.UtcNow.Ticks), tagBuilder.ToString());
WriteEvent(command, persistent.WithTimestamp(TimestampProvider.GenerateTimestamp(persistent)), tagBuilder.ToString());
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) August 14, 2021 19:43
@Aaronontheweb Aaronontheweb merged commit 2a8278b into akkadotnet:dev Aug 16, 2021
@Aaronontheweb Aaronontheweb added the akka-persistence-sql-common Akka.Persistence.Sql.Common label Aug 16, 2021
@Aaronontheweb Aaronontheweb added this to the 1.4.24 milestone Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
akka-persistence-sql-common Akka.Persistence.Sql.Common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants