Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
9d48194d
Unverified
Commit
9d48194d
authored
Aug 21, 2025
by
Lanqing Yang
Committed by
GitHub
Aug 21, 2025
Browse files
fix: ensure nats fails fast with jetstream failure (#2590)
Signed-off-by:
lyang24
<
lanqingy93@gmail.com
>
parent
ab9c9509
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lib/runtime/src/transports/nats.rs
lib/runtime/src/transports/nats.rs
+6
-0
No files found.
lib/runtime/src/transports/nats.rs
View file @
9d48194d
...
@@ -343,6 +343,12 @@ impl ClientOptions {
...
@@ -343,6 +343,12 @@ impl ClientOptions {
let
js_ctx
=
jetstream
::
new
(
client
.clone
());
let
js_ctx
=
jetstream
::
new
(
client
.clone
());
// Validate JetStream is available
js_ctx
.query_account
()
.await
.map_err
(|
e
|
anyhow
::
anyhow!
(
"JetStream not available: {e}"
))
?
;
Ok
(
Client
{
client
,
js_ctx
})
Ok
(
Client
{
client
,
js_ctx
})
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment