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
59e6873e
Unverified
Commit
59e6873e
authored
Dec 16, 2025
by
Yan Ru Pei
Committed by
GitHub
Dec 16, 2025
Browse files
chore: do not assume QUEUE_NAME for event stream anymore (#4982)
Signed-off-by:
PeaBrane
<
yanrpei@gmail.com
>
parent
c26e6fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
lib/runtime/src/transports/nats.rs
lib/runtime/src/transports/nats.rs
+0
-13
No files found.
lib/runtime/src/transports/nats.rs
View file @
59e6873e
...
...
@@ -416,9 +416,6 @@ pub fn url_to_bucket_and_key(url: &Url) -> anyhow::Result<(String, String)> {
Ok
((
bucket
.to_string
(),
key
.to_string
()))
}
/// Default queue name for publishing events
pub
const
QUEUE_NAME
:
&
str
=
"queue"
;
/// A queue implementation using NATS JetStream
pub
struct
NatsQueue
{
/// The name of the stream to use for the queue
...
...
@@ -863,16 +860,6 @@ impl EventPublisher for NatsQueue {
event_name
:
impl
AsRef
<
str
>
+
Send
+
Sync
,
bytes
:
Vec
<
u8
>
,
)
->
Result
<
()
>
{
// We expect the stream to be always suffixed with "queue"
// This suffix itself is nothing special, just a repo standard
if
event_name
.as_ref
()
!=
QUEUE_NAME
{
tracing
::
warn!
(
"Expected event_name to be '{}', but got '{}'"
,
QUEUE_NAME
,
event_name
.as_ref
()
);
}
let
subject
=
format!
(
"{}.{}"
,
self
.subject
(),
event_name
.as_ref
());
// Note: enqueue_task requires &mut self, but EventPublisher requires &self
...
...
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