-
Notifications
You must be signed in to change notification settings - Fork 139
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
There was a problem hiding this 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); | |||
|
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As requested on Slack, https://natsio.slack.com/archives/C01AWP40KGF/p1729791332242309