-
Notifications
You must be signed in to change notification settings - Fork 66
Problem (Fix #777): Order of client list address api is not sorted by creation order. #928
Conversation
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.
isn't the order stable with TreeSet? Always sorted?
We can also use |
I need it sorted by creation order, just edited the title. |
|
I can only foresee |
Codecov Report
@@ Coverage Diff @@
## master #928 +/- ##
==========================================
+ Coverage 68.32% 68.34% +0.02%
==========================================
Files 133 133
Lines 17534 17562 +28
==========================================
+ Hits 11980 12003 +23
- Misses 5554 5559 +5
|
…creation order Solution: - Change `BTreeSet` to `IndexSet`
Done, changed to use |
bors r+ |
928: Problem (Fix #777): Order of client list address api is not sorted by creation order. r=tomtau a=yihuang Solution: - change `BTreeSet` to `IndexSet` This is required by new integration tests, also more intuitive to user. Co-authored-by: yihuang <[email protected]>
Solution:
BTreeSet
toIndexSet
This is required by new integration tests, also more intuitive to user.