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 a few methods into downstairs #1160

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Feb 13, 2024

At some point, we may want the Downstairs to own its data. This PR moves proc_frame and the core of do_work_task into methods on the Downstairs, though they still take a Mutex<Downstairs> as their argument.

The purpose of this PR is to make later PRs more readable: this is mostly mechanical moving + indenting of code, so that a later PR that changes logic won't also have 500 LOC of reorganization.

(I did sneak in one small change, which is consolidating calls to is_message_valid)

@mkeeter mkeeter requested a review from leftwo February 13, 2024 21:18
Copy link
Contributor

@leftwo leftwo left a comment

Choose a reason for hiding this comment

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

Github just can't figure out what to do with your PRs.
I just did a old/new files side by side and there really is not much to it.

@mkeeter mkeeter merged commit 3d48060 into oxidecomputer:main Feb 20, 2024
18 checks passed
@mkeeter mkeeter deleted the move-methods-into-downstairs branch February 20, 2024 14:57
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