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

Moved micro_args to examples #731

Merged
merged 2 commits into from
Mar 15, 2024
Merged

Moved micro_args to examples #731

merged 2 commits into from
Mar 15, 2024

Conversation

levb
Copy link
Collaborator

@levb levb commented Mar 14, 2024

Fixes #701

@kozlovic kozlovic removed their assignment Mar 14, 2024
@kozlovic kozlovic self-requested a review March 14, 2024 20:54
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. But while I was compiling on Windows (to make sure that there was no issue), I saw a warning caused by your previous PR (the pause consumer):

[ 97%] Building C object test/CMakeFiles/testsuite.dir/test.c.obj
test.c
E:\cnats\test\test.c(24331): warning C4307: '*': integral constant overflow
E:\cnats\test\test.c(24346): warning C4307: '*': integral constant overflow
E:\cnats\test\test.c(24350): warning C4307: '*': integral constant overflow

Would you mind making this change?

diff --git a/test/test.c b/test/test.c
index 2bad703d..ffd76631 100644
--- a/test/test.c
+++ b/test/test.c
@@ -24325,7 +24325,7 @@ test_JetStreamMgtConsumers(void)
     cfg.Name = "my_name";
     cfg.DeliverSubject = "mn.foo";
     cfg.FilterSubject = "bar.>";
-#define TIME_20350101 (2051251200L * 1000000000L)
+#define TIME_20350101 ((int64_t)2051251200L * (int64_t)1000000000L)
     if (serverVersionAtLeast(2, 11, 0))
     {
         cfg.PauseUntil = TIME_20350101;

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 9f72071 into main Mar 15, 2024
2 checks passed
@levb levb deleted the lev-GH-701-microargs branch March 15, 2024 15:56
levb added a commit that referenced this pull request Apr 12, 2024
* Moved micro_args to examples

* PR feedback: Windows fix in test.c (unrelated)
@levb levb added this to the v3.8.1 milestone Apr 12, 2024
@levb levb removed the cherry-pick label Apr 12, 2024
@levb
Copy link
Collaborator Author

levb commented Apr 12, 2024

Cherry-picked for v3.8.1

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.

microservices header missing
2 participants