chore: fix HLC comparison
Some checks failed
Test & Docs / tests (postgresql, 3.10) (push) Has been cancelled
Test & Docs / tests (postgresql, 3.12) (push) Has been cancelled
Test & Docs / lint (push) Has been cancelled

This change was made by biome, but it breaks unittests, not
sure why but let's revert for now.
This commit is contained in:
Yohan Boniface 2025-03-28 17:59:35 +01:00
parent ae8cbf39ad
commit 8292608365

View file

@ -91,7 +91,7 @@ export class HybridLogicalClock {
if (now > local.walltime && now > remote.walltime) {
nextValue = { ...local, walltime: now }
} else if (local.walltime === remote.walltime) {
} else if (local.walltime == remote.walltime) {
const nn = Math.max(local.nn, remote.nn) + 1
nextValue = { ...local, nn: nn }
} else if (remote.walltime > local.walltime) {