Skip to content

Commit

Permalink
fix(jetstream): direct get api now uses the configured timeout in the…
Browse files Browse the repository at this point in the history
… context (#97)

Signed-off-by: Alberto Ricart <alberto@synadia.com>
  • Loading branch information
aricart authored Nov 1, 2024
1 parent fb44600 commit 914363e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jetstream/src/jsm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class DirectStreamAPIImpl extends BaseApiClientImpl
const r = await this.nc.request(
subj,
payload,
{ timeout: this.timeout },
);

if (r.headers?.code !== 0) {
Expand Down

0 comments on commit 914363e

Please sign in to comment.