Skip to content

Conversation

@luqmana
Copy link
Contributor

@luqmana luqmana commented Dec 30, 2025

Copy link
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

LGTM (other than needing to point Cargo.toml back to main once the MGS PR is merged)

Ok(HfPersistentData { dev_select }) => {
Ok(Self::dev_to_slot(dev_select))
}
Err(HfError::NoPersistentData) => Ok(0),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe a comment explaining why it's okay to fall back to slot 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment but maybe it's worth just passing through the error so we don't mask failures to set a persistent slot?

Copy link
Collaborator

Choose a reason for hiding this comment

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

returning the error would be my preference, I had assumed this was needed for some automatic testing or edge case where 0 made sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, updated!

@luqmana luqmana force-pushed the get-persistent-slot branch from 9af440e to 0ce0264 Compare January 5, 2026 20:40
Copy link
Collaborator

@labbott labbott left a comment

Choose a reason for hiding this comment

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

LGTM thanks for doing this work

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.

Need means of getting persistent versus current active slots

4 participants