mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: fix HLC comparison
This change was made by biome, but it breaks unittests, not sure why but let's revert for now.
This commit is contained in:
parent
ae8cbf39ad
commit
8292608365
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ export class HybridLogicalClock {
|
||||||
|
|
||||||
if (now > local.walltime && now > remote.walltime) {
|
if (now > local.walltime && now > remote.walltime) {
|
||||||
nextValue = { ...local, walltime: now }
|
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
|
const nn = Math.max(local.nn, remote.nn) + 1
|
||||||
nextValue = { ...local, nn: nn }
|
nextValue = { ...local, nn: nn }
|
||||||
} else if (remote.walltime > local.walltime) {
|
} else if (remote.walltime > local.walltime) {
|
||||||
|
|
Loading…
Reference in a new issue