Skip to content

Commit

Permalink
fix: local remote timestamp가 같은 경우 조건 제외
Browse files Browse the repository at this point in the history
  • Loading branch information
redundant4u committed Mar 31, 2024
1 parent a72eaac commit 62c1fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/crdt/LWWRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class LWWRegister {
const [remoteTimestamp] = state;
const [localTimestamp] = this.state;

if (localTimestamp >= remoteTimestamp) {
if (localTimestamp > remoteTimestamp) {
return;
}

Expand Down

0 comments on commit 62c1fd2

Please sign in to comment.