-
Notifications
You must be signed in to change notification settings - Fork 13
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
QoS volume list #349
Conversation
pkg/middleend/qos.go
Outdated
for _, qosVolume := range s.volumes.qosVolumes { | ||
volumes = append(volumes, proto.Clone(qosVolume).(*pb.QosVolume)) | ||
} | ||
sort.Sort(qosVolumesSortedByID(volumes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you need sort ?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
f69eb9d
to
aee6d06
Compare
Codecov Report
@@ 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
|
9ec2b12
to
141b8d5
Compare
Signed-off-by: Artsiom Koltun <[email protected]>
141b8d5
to
19ca1d8
Compare
Signed-off-by: Artsiom Koltun <[email protected]>
No description provided.