belliottsmith commented on code in PR #97:
URL: https://github.com/apache/cassandra-accord/pull/97#discussion_r1634715767
##########
accord-core/src/main/java/accord/local/Node.java:
##########
@@ -775,6 +738,88 @@ public CommandStore unsafeByIndex(int index)
public LongSupplier unsafeGetNowSupplier()
{
- return nowSupplier;
+ return timeService.nowSupplier;
+ }
+
+ private class TimeService implements NodeTimeService
+ {
+ private final LongSupplier nowSupplier;
+ private final ToLongFunction<TimeUnit> nowTimeUnit;
+ private final AtomicReference<Timestamp> now;
+ private final AtomicLong lastTimestamp;
Review Comment:
can't this be inferred from the `now.hlc` component?
--
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]