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

fix: for upstream changes #2

Merged
merged 4 commits into from
Jun 19, 2024
Merged
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
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.

Loading