Skip to content

Added UpdatesOnly to kwWatchOptions - #818

Merged
levb merged 3 commits into
mainfrom
lev-kv-updatesonly
Nov 13, 2024
Merged

Added UpdatesOnly to kwWatchOptions#818
levb merged 3 commits into
mainfrom
lev-kv-updatesonly

Conversation

@levb

@levb levb commented Nov 13, 2024

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Nov 13, 2024

Copy link
Copy Markdown

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

@kozlovic kozlovic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread test/test.c
natsThread_Join(t);
natsThread_Destroy(t);
kvWatcher_Destroy(w);

Copy link
Copy Markdown
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...

@kozlovic kozlovic left a comment

Copy link
Copy Markdown
Member

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
@levb
levb deleted the lev-kv-updatesonly branch November 13, 2024 23:58
@levb levb mentioned this pull request Feb 28, 2025
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