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

Move sync lookup trait function to its caller #5704

Merged
merged 2 commits into from
May 6, 2024

Conversation

dapplion
Copy link
Collaborator

@dapplion dapplion commented May 3, 2024

Issue Addressed

Noticed that RequestState trait implements a function that can be moved to its caller SingleBlockLookup. Because RequestState::continue_request needed state from the lookup it had to pass some arguments around.

Proposed Changes

  • Move sync lookup trait function to its caller
  • Logic is identical just copy pasted code from a file to the other

@realbigsean realbigsean added the ready-for-review The code is ready for review label May 6, 2024
Copy link
Member

@realbigsean realbigsean left a comment

Choose a reason for hiding this comment

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

Nice cleanup

@realbigsean
Copy link
Member

@mergify queue

Copy link

mergify bot commented May 6, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 5135a77

mergify bot added a commit that referenced this pull request May 6, 2024
@realbigsean realbigsean added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels May 6, 2024
@mergify mergify bot merged commit 5135a77 into sigp:unstable May 6, 2024
27 checks passed
@dapplion dapplion deleted the sync-trait-fn branch May 7, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants