Skip to content

Commit

Permalink
fix matching listener
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Dec 4, 2024
1 parent ef5b953 commit 3a13b86
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions zenoh-plugin-ros2dds/src/route_publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use crate::{

pub struct ZPublisher {
publisher: Arc<Publisher<'static>>,
matching_listener: Option<zenoh::pubsub::MatchingListener<()>>,
matching_listener: Option<zenoh::matching::MatchingListener<()>>,
_cache: Option<PublicationCache>,
cache_size: usize,
}
Expand Down Expand Up @@ -257,7 +257,7 @@ impl RoutePublisher {

move |status| {
tracing::debug!("{route_id} MatchingStatus changed: {status:?}");
if status.matching_subscribers() {
if status.matching() {
if let Err(e) = activate_dds_reader(
&dds_reader,
&ros2_name,
Expand Down

0 comments on commit 3a13b86

Please sign in to comment.