fix: Refresh node clocks across sync wrappers (#152)
This commit is contained in:
parent
51ce999af0
commit
96271a25ab
1 changed files with 1115 additions and 43 deletions
|
|
@ -103,7 +103,7 @@ class Hlc implements Comparable<Hlc> {
|
|||
|
||||
/// Increments the current timestamp for transmission to another system.
|
||||
Hlc increment() {
|
||||
final localWallTime = clock.now().toUtc();
|
||||
final localWallTime = clock.now().toUtcMillisecond();
|
||||
final datetimeNew = localWallTime.isAfter(datetime) ? localWallTime : datetime;
|
||||
final counterNew = datetimeNew == datetime ? counter + 1 : 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue