Skip to content

Commit

Permalink
Merge pull request #584 from nats-io/js_add_fetch_request
Browse files Browse the repository at this point in the history
[ADDED] JetStream: natsSubscription_FetchRequest
  • Loading branch information
kozlovic authored Sep 19, 2022
2 parents 5b8f3aa + 2cd5ee1 commit 157ce3a
Show file tree
Hide file tree
Showing 9 changed files with 483 additions and 110 deletions.
4 changes: 3 additions & 1 deletion src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,9 @@ natsConn_processMsg(natsConnection *nc, char *buf, int bufLen)
return NATS_OK;
}

if ((jsi = sub->jsi) != NULL)
jsi = sub->jsi;
// For JS subscriptions (but not pull ones), handle hearbeat and flow control here.
if (jsi && !jsi->pull)
{
ctrlMsg = natsMsg_isJSCtrl(msg, &jct);
if (ctrlMsg && jct == jsCtrlHeartbeat)
Expand Down
Loading

0 comments on commit 157ce3a

Please sign in to comment.