Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hydroflow_plus): add round_robin helpers for networking #1566

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

shadaj
Copy link
Member

@shadaj shadaj commented Nov 13, 2024

Also fixes compiler crashes when using .enumerate() on an un-batched stream.

Also fixes compiler crashes when using `.enumerate()` on an un-batched stream.
Copy link

cloudflare-workers-and-pages bot commented Nov 13, 2024

Deploying hydroflow with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3001470
Status: ✅  Deploy successful!
Preview URL: https://2b2c3442.hydroflow.pages.dev
Branch Preview URL: https://pr1566.hydroflow.pages.dev

View logs

@shadaj shadaj requested a review from MingweiSamuel November 13, 2024 23:48
Comment on lines +1005 to +1013
if *is_static {
builder.add_statement(parse_quote! {
#enumerate_ident = #input_ident -> enumerate::<'static>();
});
} else {
builder.add_statement(parse_quote! {
#enumerate_ident = #input_ident -> enumerate::<'tick>();
});
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could also do

let lifetime = if *is_static {
    parse_quote!('static)
} else {
    parse_quote!('tick)
};
builder.add_statement(parse_quote! {
    #enumerate_ident = #input_ident -> enumerate::<#lifetime>();
});

@shadaj shadaj merged commit 22de01f into main Nov 15, 2024
14 checks passed
@shadaj shadaj deleted the pr1566 branch November 15, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants