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

[NIT] removed line-trailing whitespace in the code #817

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/js-sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int main(int argc, char **argv)
// Uncomment to provide custom control over next fetch size.
// jsOpts.PullSubscribeAsync.NextHandler = nextFetchCb;

// Uncomment to turn off AutoACK on delivered messages.
// Uncomment to turn off AutoACK on delivered messages.
// so.ManualAck = true;

s = js_PullSubscribeAsync(&sub, js, subj, durable, onMsg, NULL, &jsOpts, &so, &jerr);
Expand Down
4 changes: 2 additions & 2 deletions src/dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ nats_dispatchThreadOwn(void *arg)
completeCBClosure = sub->onCompleteCBClosure;
jsSub *jsi = sub->jsi;
connClosed = sub->connClosed;

fetch = (jsi != NULL) ? jsi->fetch : NULL;
if (sub->closed)
{
Expand Down Expand Up @@ -560,7 +560,7 @@ nats_dispatchThreadOwn(void *arg)
unsub = true;
break;
}
if (lastMessageInSub)
if (lastMessageInSub)
{
// If we have hit the max for delivered msgs, just remove sub.
rmSub = true;
Expand Down
2 changes: 1 addition & 1 deletion src/js.c
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ js_PullSubscribeAsync(natsSubscription **newsub, jsCtx *js, const char *subject,
if (jsOpts->PullSubscribeAsync.NoWait)
return nats_setError(NATS_INVALID_ARG, "%s", "Can not use NoWait with KeepAhead together");
}

if (errCode != NULL)
*errCode = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/jsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ js_unmarshalStreamConfig(nats_JSON *json, const char *fieldName, jsStreamConfig
jsStreamConfig *cfg = NULL;
nats_JSON **sources = NULL;
int sourcesLen = 0;
nats_JSON *obj = NULL;
nats_JSON *obj = NULL;
natsStatus s;

if (fieldName != NULL)
Expand Down
2 changes: 1 addition & 1 deletion src/nats.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ natsStatus
nats_Open(int64_t lockSpinCount)
{
bool defaultToSharedDispatchers = (getenv("NATS_DEFAULT_TO_LIB_MSG_DELIVERY") != NULL ? true : false);

natsClientConfig config = {
.LockSpinCount = lockSpinCount,
.DefaultToThreadPool = defaultToSharedDispatchers,
Expand Down
2 changes: 1 addition & 1 deletion src/sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ natsSub_create(natsSubscription **newSub, natsConnection *nc, const char *subj,
{
_retain(sub);
if (!useAsyncThread)
{
{
sub->dispatcher = &sub->ownDispatcher;
_release(sub);
}
Expand Down
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ natsStatus nats_formatStringArray(char **out, const char **strings, int count)

IFOK(s, natsBuf_AppendByte(&buf, ']'));
IFOK(s, natsBuf_AppendByte(&buf, '\0'));

if (s != NATS_OK)
{
natsBuf_Cleanup(&buf);
Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ extern "C" {
#define NATS_VERSION_PATCH 0

#define NATS_VERSION_STRING "3.10.0-beta"

#define NATS_VERSION_NUMBER ((NATS_VERSION_MAJOR << 16) | \
(NATS_VERSION_MINOR << 8) | \
NATS_VERSION_PATCH)

#define NATS_VERSION_REQUIRED_NUMBER 0x030900

#ifdef __cplusplus
Expand Down
4 changes: 2 additions & 2 deletions src/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ extern "C" {
#define NATS_VERSION_PATCH @NATS_VERSION_PATCH@

#define NATS_VERSION_STRING "@NATS_VERSION_MAJOR@.@NATS_VERSION_MINOR@.@NATS_VERSION_PATCH@@NATS_VERSION_SUFFIX@"

#define NATS_VERSION_NUMBER ((NATS_VERSION_MAJOR << 16) | \
(NATS_VERSION_MINOR << 8) | \
NATS_VERSION_PATCH)

#define NATS_VERSION_REQUIRED_NUMBER @NATS_VERSION_REQUIRED_NUMBER@

#ifdef __cplusplus
Expand Down