Skip to content

Move sync lookup trait function to its caller#5704

Merged
mergify[bot] merged 2 commits intosigp:unstablefrom
dapplion:sync-trait-fn
May 6, 2024
Merged

Move sync lookup trait function to its caller#5704
mergify[bot] merged 2 commits intosigp:unstablefrom
dapplion:sync-trait-fn

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

@mergify
Copy link

mergify bot commented May 6, 2024

queue

✅ The pull request has been merged automatically

Details

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
@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