Skip to content

Commit

Permalink
[FIXED] Examples: Add missing 'stream' and 'durable' params in usage (#…
Browse files Browse the repository at this point in the history
…821)

Also clarify that `stream` parameter is actually needed.

Signed-off-by: Ivan Kozlovic <[email protected]>
  • Loading branch information
kozlovic authored Nov 22, 2024
1 parent adb9074 commit 227b48e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/js-pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "examples.h"

static const char *usage = ""\
"-stream stream name (default is 'foo')\n" \
"-stream stream name (required)\n" \
"-txt text to send (default is 'hello')\n" \
"-count number of messages to send\n" \
"-sync publish synchronously (default is async)\n";
Expand Down
2 changes: 2 additions & 0 deletions examples/js-sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

static const char *usage = ""\
"-gd use global message delivery thread pool\n" \
"-stream stream name (required)\n" \
"-durable durable name (default is to create an ephemeral consumer)\n"
"-sync receive synchronously (default is asynchronous)\n" \
"-pull use pull subscription\n" \
"-pull-async use an async pull subscription\n" \
Expand Down

0 comments on commit 227b48e

Please sign in to comment.