Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/dyn-clone-1.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
valebes authored Nov 8, 2023
2 parents 86a1e96 + 9a1d043 commit 9e938be
Show file tree
Hide file tree
Showing 6 changed files with 1,070 additions and 112 deletions.
8 changes: 4 additions & 4 deletions src/pipeline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ where
macro_rules! propagate {
($s1:expr) => {
{
let mut block = InNode::new(Box::new($s1), get_global_orchestrator());
let block = InNode::new(Box::new($s1), get_global_orchestrator());
block
}
};

($s1:expr $(, $tail:expr)*) => {
{
let node = ($s1);
let mut block = InOutNode::new(Box::new(node),
let block = InOutNode::new(Box::new(node),
propagate!($($tail),*),
get_global_orchestrator());
block
Expand Down Expand Up @@ -168,10 +168,10 @@ macro_rules! pipeline {
($s1:expr $(, $tail:expr)*) => {
{
let orchestrator = get_global_orchestrator();
let mut block = OutNode::new(Box::new($s1),
let block = OutNode::new(Box::new($s1),
propagate!($($tail),*), orchestrator);

let mut pipeline = Pipeline::new(block);
let pipeline = Pipeline::new(block);
pipeline
}
};
Expand Down
6 changes: 3 additions & 3 deletions src/pipeline/node/inout_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ where
// If the node is not ordered, then i can send the messages to the next node
// without any order.
loop {
if tmp.is_empty() {
break;
}
let msg = Message {
op: Task::New(tmp.pop_front().unwrap()),
order: 0,
Expand All @@ -450,9 +453,6 @@ where
if err.is_err() {
panic!("Error: {}", err.unwrap_err());
}
if tmp.is_empty() {
break;
}
}
}
}
Expand Down
Loading

0 comments on commit 9e938be

Please sign in to comment.