Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test/check brian pr - test build #40

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/bundled-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ on:
branches: [ main ]
pull_request:
paths:
- "src/**"
- "Cargo.*"
- ".github/**"
- "**/src/**"
- "**/Cargo.*"
workflow_call:
workflow_dispatch:

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unbundled-lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ on:
branches: [ main ]
pull_request:
paths:
- "src/**"
- "Cargo.*"
- ".github/**"
- "**/src/**"
- "**/Cargo.*"
workflow_call:
workflow_dispatch:

Expand Down
14 changes: 13 additions & 1 deletion 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 @@ -712,6 +712,18 @@ impl UListener for ForwardingListener {
FORWARDING_LISTENER_FN_ON_RECEIVE_TAG,
&msg
);

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,
FORWARDING_LISTENER_TAG,
FORWARDING_LISTENER_FN_ON_RECEIVE_TAG,
&msg.attributes
);
return;
}

if let Err(e) = self.sender.send(Arc::new(msg)).await {
error!(
"{}:{}:{} Unable to send message to worker pool: {e:?}",
Expand Down
Loading