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

Added UpdatesOnly to kwWatchOptions #818

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Added UpdatesOnly to kwWatchOptions #818

merged 3 commits into from
Nov 13, 2024

Conversation

levb
Copy link
Collaborator

@levb levb commented Nov 13, 2024

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.47%. Comparing base (1553d4a) to head (8ab5120).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
src/kv.c 50.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #818      +/-   ##
==========================================
+ Coverage   68.71%   70.47%   +1.76%     
==========================================
  Files          39       47       +8     
  Lines       15207    15373     +166     
  Branches     3143     3181      +38     
==========================================
+ Hits        10449    10834     +385     
+ Misses       1700     1465     -235     
- Partials     3058     3074      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@levb levb marked this pull request as ready for review November 13, 2024 18:31
@levb levb requested review from kozlovic and mtmk November 13, 2024 18:31
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -32121,6 +32121,16 @@ void test_KeyValueWatch(void)
natsThread_Join(t);
natsThread_Destroy(t);
kvWatcher_Destroy(w);

Copy link
Member

Choose a reason for hiding this comment

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

nit: As best practice, I would set w to NULL since you are going to recreate below. But since if it is fails to be created we fail (testCond() would exit), then there is no risk of "double free" when calling kvWatcher_Destroy() again...

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@levb levb merged commit adb9074 into main Nov 13, 2024
30 checks passed
@levb levb deleted the lev-kv-updatesonly branch November 13, 2024 23:58
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.

2 participants