Skip to content

Commit 446b7a3

Browse files
committed
issued:iceoryx2 0.4 to 0.5
1 parent cc2d36e commit 446b7a3

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

Cargo.lock

+19-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dds_iceoryx2/publisher.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2727
let publisher = service.publisher_builder().create()?;
2828

2929
let mut counter: u64 = 0;
30-
31-
while let NodeEvent::Tick = node.wait(CYCLE_TIME) {
30+
while node.wait(CYCLE_TIME).is_ok() {
3231
counter += 1;
3332
let sample = publisher.loan_uninit()?;
3433

examples/dds_iceoryx2/subscriber.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2626

2727
let subscriber = service.subscriber_builder().create()?;
2828

29-
while let NodeEvent::Tick = node.wait(CYCLE_TIME) {
29+
while node.wait(CYCLE_TIME).is_ok() {
3030
while let Some(sample) = subscriber.receive()? {
3131
println!("received: {:?}", *sample);
3232
}

0 commit comments

Comments
 (0)