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

QoS volume list #349

Merged
merged 2 commits into from
May 4, 2023
Merged

Conversation

artek-koltun
Copy link
Contributor

No description provided.

@artek-koltun artek-koltun marked this pull request as ready for review April 28, 2023 08:34
@artek-koltun artek-koltun requested a review from a team as a code owner April 28, 2023 08:34
for _, qosVolume := range s.volumes.qosVolumes {
volumes = append(volumes, proto.Clone(qosVolume).(*pb.QosVolume))
}
sort.Sort(qosVolumesSortedByID(volumes))
Copy link
Member

Choose a reason for hiding this comment

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

why you need sort ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd keep sort since map ordering is unpredictable in Go even if we run a range loop over the same map multiple times.

Copy link
Member

@glimchb glimchb left a comment

Choose a reason for hiding this comment

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

I think we should leave sort to a later PR

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Merging #349 (19ca1d8) into main (b7d80d8) will decrease coverage by 0.02%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
- Coverage   81.85%   81.84%   -0.02%     
==========================================
  Files          16       16              
  Lines        1990     2010      +20     
==========================================
+ Hits         1629     1645      +16     
- Misses        320      323       +3     
- Partials       41       42       +1     
Impacted Files Coverage Δ
pkg/middleend/qos.go 97.20% <80.00%> (-2.80%) ⬇️

@artek-koltun artek-koltun force-pushed the feat-list-qos-volumes branch 2 times, most recently from 9ec2b12 to 141b8d5 Compare May 4, 2023 13:56
Signed-off-by: Artsiom Koltun <[email protected]>
Signed-off-by: Artsiom Koltun <[email protected]>
@glimchb glimchb merged commit 15de590 into opiproject:main May 4, 2023
@artek-koltun artek-koltun deleted the feat-list-qos-volumes branch November 17, 2023 11:41
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