@@ -339,10 +339,9 @@ int MixedStreamerReducer::read_vec(size_t source_streamer_index,
339339 iterator->next ();
340340 }
341341
342- std::sort (pending_items.begin (), pending_items.end (),
343- [](const auto &lhs, const auto &rhs) {
344- return lhs.first < rhs.first ;
345- });
342+ std::sort (
343+ pending_items.begin (), pending_items.end (),
344+ [](const auto &lhs, const auto &rhs) { return lhs.first < rhs.first ; });
346345 for (auto &item : pending_items) {
347346 if (!mt_list_.produce (VectorItem ((*next_id)++, std::move (item.second )))) {
348347 LOG_ERROR (" Produce vector to queue failed. key[%u]" , item.first );
@@ -568,9 +567,9 @@ int MixedStreamerReducer::read_sparse_vec(size_t source_streamer_index,
568567 return lhs.pkey_ < rhs.pkey_ ;
569568 });
570569 for (auto &item : pending_items) {
571- if (!sparse_mt_list_.produce (SparseVectorItem (
572- (*next_id)++, std::move (item.sparse_indices_ ),
573- std::move (item.sparse_values_ )))) {
570+ if (!sparse_mt_list_.produce (
571+ SparseVectorItem ( (*next_id)++, std::move (item.sparse_indices_ ),
572+ std::move (item.sparse_values_ )))) {
574573 LOG_ERROR (" Produce vector to queue failed. key[%lu]" ,
575574 static_cast <size_t >(item.pkey_ ));
576575 return IndexError_Runtime;
0 commit comments