Skip to content

Commit

Permalink
FOLD: review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Aug 5, 2019
1 parent 4c47c9c commit c08cd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ripple/overlay/impl/PeerReservationTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ auto
PeerReservationTable::list() const -> std::vector<PeerReservation>
{
std::vector<PeerReservation> list;
list.reserve(table_.size());
{
std::lock_guard<std::mutex> lock(mutex_);
list.reserve(table_.size());
std::copy(table_.begin(), table_.end(), std::back_inserter(list));
}
std::sort(list.begin(), list.end());
Expand Down

0 comments on commit c08cd11

Please sign in to comment.