Skip to content

Commit

Permalink
Merge branch 'feat/partial-length-unit-tests' of https://github.com/A…
Browse files Browse the repository at this point in the history
…be27342/FluidFramework into feat/partial-length-unit-tests
  • Loading branch information
Connor Skees committed Aug 16, 2022
2 parents d7fad08 + c4af062 commit 9081e16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dds/merge-tree/src/partialLengths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,9 @@ function verifyPartialLengths(
// Only the flat partialLengths can have overlapRemoveClients, the per client view shouldn't
assert(!clientPartials, 0x058 /* "Both overlapRemoveClients and clientPartials are set!" */);

// Each overlap client count as one
count += partialLength.overlapRemoveClients.size();
// Each overlap client count as one, but the first remove to sequence was already counted.
// (this aligns with the logic to omit the removing client in `addClientSeqNumberFromPartial`)
count += partialLength.overlapRemoveClients.size() - 1;
}
}
return count;
Expand Down

0 comments on commit 9081e16

Please sign in to comment.