Skip to content

Commit

Permalink
Incorporate Pete's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
brianeaton authored and PLeVasseur committed Aug 9, 2024
1 parent 05aaff7 commit 696cf1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions up-streamer/src/ustreamer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::collections::{HashMap, HashSet};
use std::hash::{Hash, Hasher};
use std::ops::Deref;
use std::thread;
use up_rust::{UCode, UListener, UMessage, UStatus, UTransport, UUIDBuilder, UUri};
use up_rust::{UCode, UListener, UMessage, UPayloadFormat, UStatus, UTransport, UUIDBuilder, UUri};

const USTREAMER_TAG: &str = "UStreamer:";
const USTREAMER_FN_NEW_TAG: &str = "new():";
Expand Down Expand Up @@ -713,7 +713,7 @@ impl UListener for ForwardingListener {
&msg
);

if msg.attributes.payload_format.enum_value_or_default() == up_rust::UPayloadFormat::UPAYLOAD_FORMAT_SHM {
if msg.attributes.payload_format.enum_value_or_default() == UPayloadFormat::UPAYLOAD_FORMAT_SHM {
debug!(
"{}:{}:{} Received message with type UPAYLOAD_FORMAT_SHM, which is not supported. A pointer to shared memory will not be usable on another device. UAttributes: {:#?}",
self.forwarding_id,
Expand Down

0 comments on commit 696cf1d

Please sign in to comment.