Skip to content

Commit

Permalink
Port to iceoryx-rs v0.1.0 and bump iceray version to v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jun 30, 2022
1 parent 3fc033f commit 527ecaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 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 Cargo.toml
@@ -1,7 +1,7 @@
[package]
edition = "2018"
name = "iceray"
version = "0.0.9"
version = "0.1.0"
authors = ["elBoberido <k.hias@gmx.de>"]
description = "Introspection TUI for Eclipse iceoryx written in Rust"
readme = "README.md"
Expand All @@ -15,7 +15,7 @@ repository = "https://github.com/elBoberido/iceray"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
iceoryx-rs = { version = "0.0.13" }
iceoryx-rs = { version = "0.1.0" }
termion = "1.5"
tui = { version = "0.18", default-features = false, features = ["termion"] }
structopt = "0.3"
6 changes: 3 additions & 3 deletions src/app.rs
Expand Up @@ -59,7 +59,7 @@ impl MemorySegments {
}

pub fn update(&mut self) {
if let Some(sample) = self.sample_receiver.get_sample() {
if let Some(sample) = self.sample_receiver.take() {
// update history
sample
.memory_segments()
Expand Down Expand Up @@ -169,7 +169,7 @@ impl ProcessList {
}

pub fn update(&mut self) {
if let Some(list) = self.sample_receiver.get_sample() {
if let Some(list) = self.sample_receiver.take() {
self.map.clear();

list.processes().into_iter().for_each(|process| {
Expand Down Expand Up @@ -260,7 +260,7 @@ impl ServiceList {
}

pub fn update(&mut self, processes: &mut ProcessList) {
if let Some(ports) = self.sample_receiver.get_sample() {
if let Some(ports) = self.sample_receiver.take() {
self.map.clear();
for (_, process_details) in processes.map.iter_mut() {
process_details.publisher_ports.clear();
Expand Down

0 comments on commit 527ecaf

Please sign in to comment.