Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary checkpoint validation from applyChangePack #497

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

chacha912
Copy link
Contributor

What this PR does / why we need it?

Remove unnecessary checkpoint validation from applyChangePack.
Since we trust the server's response, we can apply the checkpoint
received from it without further verification.

Any background context you want to provide?

What are the relevant tickets?

Fixes #

Checklist

  • Added relevant tests or not required
  • Didn't break anything

Since we trust the server's response, we can apply the checkpoint
received from it without further verification
@chacha912 chacha912 marked this pull request as ready for review April 18, 2023 05:42
@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Merging #497 (7e71c6e) into main (913d608) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #497      +/-   ##
==========================================
- Coverage   90.25%   90.25%   -0.01%     
==========================================
  Files          70       70              
  Lines        6148     6145       -3     
  Branches      578      576       -2     
==========================================
- Hits         5549     5546       -3     
  Misses        388      388              
  Partials      211      211              
Impacted Files Coverage Δ
src/client/client.ts 75.07% <100.00%> (ø)
src/document/document.ts 72.78% <100.00%> (-0.51%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@hackerwins hackerwins merged commit d1d1b9e into main Apr 18, 2023
1 check passed
@hackerwins hackerwins deleted the syncmode branch April 18, 2023 05:47
hunkim98 pushed a commit to hunkim98/yorkie-js-sdk that referenced this pull request Jul 12, 2023
…-team#497)

Since we trust the server's response, we can apply the checkpoint
received from it without further verification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants