From 1b2d12f741585338831c210bc7c9b0cb52827850 Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Fri, 25 Oct 2024 09:56:52 -0500 Subject: [PATCH] fix(jetstream): direct get api now uses the configured timeout in the context Signed-off-by: Alberto Ricart --- jetstream/src/jsm.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/jetstream/src/jsm.ts b/jetstream/src/jsm.ts index 9cf213c9..9b3d7306 100644 --- a/jetstream/src/jsm.ts +++ b/jetstream/src/jsm.ts @@ -70,6 +70,7 @@ export class DirectStreamAPIImpl extends BaseApiClientImpl const r = await this.nc.request( subj, payload, + { timeout: this.timeout }, ); // response is not a JS.API response