Skip to content

Commit 4feffe7

Browse files
committed
update comments to remove reference to CBL and SG peers
1 parent fe8e72d commit 4feffe7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

db/hybrid_logical_vector.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -712,21 +712,21 @@ func IsInConflict(ctx context.Context, localHLV, incomingHLV *HybridLogicalVecto
712712
}
713713

714714
// standard no conflict case. In the simple case, this happens when:
715-
// - Client A writes document 1@cbs1
716-
// - Client B pulls document 1@cbs1 from Client A
717-
// - Client A writes document 2@cbs1
718-
// - Client B pulls document 2@cbs1 from Client A
715+
// - Client A writes document 1@srcA
716+
// - Client B pulls document 1@srcA from Client A
717+
// - Client A writes document 2@srcA
718+
// - Client B pulls document 2@srcA from Client A
719719
if incomingHLV.DominatesSource(*localCV) {
720720
return false, nil
721721
}
722722

723723
// local revision is newer than incoming revision. Common case:
724-
// - Client A writes document 1@cbl1
725-
// - Client A pushes to Client B as 1@cbl1
726-
// - Client A pulls document 1@cbl1 from Client B
724+
// - Client A writes document 1@srcA
725+
// - Client A pushes to Client B as 1@srcA
726+
// - Client A pulls document 1@srcA from Client B
727727
//
728-
// NOTE: without P2P replication, this should not be the case and we would not get this revision, since CBL
729-
// would respond to a SG changes message that CBL does not need this revision
728+
// NOTE: without P2P replication, this should not be the case and we would not get this revision, since Client A
729+
// would respond to a Client B changes message that Client A does not need this revision
730730
if localHLV.DominatesSource(*incomingCV) {
731731
return false, ErrNoNewVersionsToAdd
732732
}

0 commit comments

Comments
 (0)