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

refactor(gateway): inline future into shard #2226

Merged
merged 6 commits into from
Jul 8, 2023

Conversation

vilgotf
Copy link
Member

@vilgotf vilgotf commented Jun 24, 2023

Unifies the core shard logic into one module to make it easier to reason about.

Unifies the core shard logic into one module to make it easier to reason
about.
@github-actions github-actions bot added c-gateway Affects the gateway crate t-refactor Refactors APIs or code. labels Jun 24, 2023

let tungstenite_message = match future.await {
NextMessageFutureOutput::Message(Some(Ok(message))) => message,
let next_action = |cx: &mut Context<'_>| {
Copy link
Member Author

Choose a reason for hiding this comment

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

The borrow checker requires this to be defined inside of the loop.

@vilgotf vilgotf enabled auto-merge (squash) July 1, 2023 15:20
@vilgotf vilgotf disabled auto-merge July 8, 2023 07:20
@vilgotf vilgotf merged commit fa99f5c into main Jul 8, 2023
@vilgotf vilgotf deleted the vilgotf/gateway/inline-future branch July 8, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-gateway Affects the gateway crate t-refactor Refactors APIs or code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant