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

Add new methods to extract fields in PartitionLoadInformation #85

Closed

Conversation

OscarTHZhang
Copy link
Contributor

No description provided.

pub fn primary_load_metric_reports(&self) -> Vec<LoadMetricReport> {
self
.primary_load_metric_reports
.iter()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just return the PrimaryLoadMetricReportList. make the field private.
mssf api prefers not use Vec or other types that requires dynamic alloc for list.

Copy link
Collaborator

@youyuanwu youyuanwu left a comment

Choose a reason for hiding this comment

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

Fix API and CI.

@OscarTHZhang
Copy link
Contributor Author

OscarTHZhang commented Nov 4, 2024

In that case, probably for simplicity we can stick with the current implementation. Just treating the struct as a C-style struct with public members. Closed the PR

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.

3 participants