fix: Refresh node clocks across sync wrappers (#152)

This commit is contained in:
Marcelo Mendonça Soares 2026-09-21 16:52:03 -03:00 • committed by GitHub
commit 96271a25ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;