Skip to content

Commit

Permalink
fixup! Lock free entity store
Browse files Browse the repository at this point in the history
  • Loading branch information
albinsuresh committed Jan 10, 2025
1 parent fb370bf commit b10eca6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/core/tedge_agent/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl Agent {
let mut entity_store_actor_builder =
ServerActorBuilder::new(entity_store_server, &ServerConfig::default(), Sequential);
mqtt_actor_builder.connect_mapped_sink(
entity_manager::server::subscriptions(),
entity_manager::server::subscriptions(self.config.mqtt_topic_root.as_ref()),
&entity_store_actor_builder,
|message| {
Some(RequestEnvelope {
Expand Down
5 changes: 3 additions & 2 deletions crates/core/tedge_agent/src/entity_manager/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl EntityStoreServer {
}
}

pub fn subscriptions() -> TopicFilter {
vec!["te/+/+/+/+/#"].try_into().unwrap()
pub fn subscriptions(topic_root: &str) -> TopicFilter {
let topic = format!("{}/+/+/+/+/#", topic_root);
vec![topic].try_into().unwrap()
}

0 comments on commit b10eca6

Please sign in to comment.