Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
fix: for upstream changes (#2)
Browse files Browse the repository at this point in the history
* fix: for upstream changes

* fixup! fix: for upstream changes

* fixup! fixup! fix: for upstream changes

* fixup! fixup! fixup! fix: for upstream changes
  • Loading branch information
MingweiSamuel authored Jun 19, 2024
1 parent d72e063 commit 30e5df2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions flow/src/bin/first_ten_distributed.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[tokio::main]
async fn main() {
hydroflow_plus::util::cli::launch(|ports| {
flow::first_ten_distributed::first_ten_distributed_runtime!(&ports)
hydroflow_plus::util::cli::launch!(|ports| {
flow::first_ten_distributed::first_ten_distributed_runtime!(ports)
})
.await;
}
2 changes: 1 addition & 1 deletion flow/src/first_ten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn first_ten<'a, D: LocalDeploy<'a>>(
) {
let process = flow.process(process_spec);

let numbers = process.source_iter(q!(0..10));
let numbers = flow.source_iter(&process, q!(0..10));
numbers.for_each(q!(|n| println!("{}", n)));
}

Expand Down
2 changes: 1 addition & 1 deletion flow/src/first_ten_distributed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn first_ten_distributed<'a, D: Deploy<'a>>(
let process = flow.process(process_spec);
let second_process = flow.process(process_spec);

let numbers = process.source_iter(q!(0..10));
let numbers = flow.source_iter(&process, q!(0..10));
numbers
.send_bincode(&second_process)
.for_each(q!(|n| println!("{}", n)));
Expand Down
6 changes: 6 additions & 0 deletions flow/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
stageleft::stageleft_crate!(flow_macro);

#[cfg(stageleft_macro)]
pub(crate) mod first_ten;
#[cfg(not(stageleft_macro))]
pub mod first_ten;

#[cfg(stageleft_macro)]
pub(crate) mod first_ten_distributed;
#[cfg(not(stageleft_macro))]
pub mod first_ten_distributed;
2 changes: 1 addition & 1 deletion flow_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"

[lib]
proc-macro = true
path = "src/lib.rs"
path = "../flow/src/lib.rs"

[features]
default = ["macro"]
Expand Down
1 change: 0 additions & 1 deletion flow_macro/src/lib.rs

This file was deleted.

0 comments on commit 30e5df2

Please sign in to comment.