pjfanning opened a new pull request, #373:
URL: https://github.com/apache/pekko-persistence-r2dbc/pull/373

   Port of akka/akka-persistence-r2dbc#324.
   
   These changes are now available under the Apache License, Version 2.0.
   
   * Truncate timestamps to microseconds because Postgres timestamps have the 
resolution of microseconds but some OS/JDK (Linux/JDK17) has Instant resolution 
of nanoseconds.
   * This could have been a problem when sending the events directly vs reading 
through the db.
   * Create `InstantFactory` utility object with a `now()` method that returns 
the current time truncated to microseconds.
   * Change `TestClock` to support microseconds or milliseconds resolution 
using factory methods (`TestClock.nowMicros()` / `TestClock.nowMillis()`).
   * Update tests to use `TestClock.nowMicros()` where timestamp offset is 
used, and `TestClock.nowMillis()` where only millisecond resolution is needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to