Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Nov 27, 2023
1 parent 09e5534 commit 67f5fb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions zenoh-plugin-dds/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ use std::collections::HashMap;
use std::convert::TryInto;
use std::env;
use std::mem::ManuallyDrop;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use std::sync::Arc;
use std::time::Duration;
use zenoh::buffers::SplitBuffer;
use zenoh::liveliness::LivelinessToken;
Expand Down Expand Up @@ -106,11 +106,12 @@ const ROS_DISCOVERY_INFO_POLL_INTERVAL_MS: u64 = 500;

zenoh_plugin_trait::declare_plugin!(DDSPlugin);


fn log_ros2_deprecation_warning() {
if ! LOG_ROS2_DEPRECATION_WARNING_FLAG.swap(true, std::sync::atomic::Ordering::Relaxed) {
if !LOG_ROS2_DEPRECATION_WARNING_FLAG.swap(true, std::sync::atomic::Ordering::Relaxed) {
log::warn!("------------------------------------------------------------------------------------------");
log::warn!("ROS 2 system detected. Did you now a new Zenoh bridge dedicated to ROS 2 exists ?");
log::warn!(
"ROS 2 system detected. Did you now a new Zenoh bridge dedicated to ROS 2 exists ?"
);
log::warn!("Check it out on https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds");
log::warn!("This DDS bridge will eventually be deprecated for ROS 2 usage in favor of this new bridge.");
log::warn!("------------------------------------------------------------------------------------------");
Expand Down

0 comments on commit 67f5fb0

Please sign in to comment.