mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
make keys unique after merge
This commit is contained in:
@@ -456,9 +456,12 @@ PostgresBackend::fetchBookOffers(
|
||||
std::optional<std::string> warning)
|
||||
-> BookOffersPage
|
||||
{
|
||||
std::vector<ripple::uint256> keys(pairs.size());
|
||||
std::vector<ripple::uint256> allKeys(pairs.size());
|
||||
for (auto const& pair : pairs)
|
||||
keys.push_back(pair.second);
|
||||
allKeys.push_back(pair.second);
|
||||
|
||||
auto uniqEnd = std::unique(allKeys.begin(), allKeys.end());
|
||||
std::vector<ripple::uint256> keys{allKeys.begin(), uniqEnd};
|
||||
|
||||
auto start = std::chrono::system_clock::now();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user