Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix: format logs for dropped operations
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai committed Jul 20, 2021
1 parent 2b0912f commit 599edf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeReplica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class TreeReplica<Id, Metadata> {
const latestTimeOfActor = this.latestTimeByReplica.get(id) ?? 0;
if (op.timestamp <= latestTimeOfActor) {
console.log(
`Clock not increased, current timestamp ${latestTimeOfActor}, provided is ${op.timestamp}.`
`Clock not increased, current timestamp ${latestTimeOfActor.toString()}, provided is ${op.timestamp.toString()}.`
);
console.log("Dropping operation.");
} else {
Expand Down

0 comments on commit 599edf3

Please sign in to comment.