Skip to content

Commit 7dfd196

Browse files
committed
Format omega integration fixes
1 parent 5f36f3c commit 7dfd196

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/core/mixed_reducer/mixed_streamer_reducer.cc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

tests/core/interface/omega_training_session_test.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <gtest/gtest.h>
1615
#include "core/interface/indexes/omega_training_session.h"
16+
#include <gtest/gtest.h>
1717

1818
namespace zvec::core_interface {
1919

@@ -88,7 +88,8 @@ TEST(OmegaTrainingSessionTest, ConsumeArtifactsAggregatesRecordsAndGtCmps) {
8888
EXPECT_TRUE(drained.gt_cmps_data.gt_cmps.empty());
8989
}
9090

91-
TEST(OmegaTrainingSessionTest, ConsumeArtifactsUsesConfiguredShapeWhenAvailable) {
91+
TEST(OmegaTrainingSessionTest,
92+
ConsumeArtifactsUsesConfiguredShapeWhenAvailable) {
9293
OmegaTrainingSession session(nullptr);
9394

9495
QueryTrainingArtifacts only;

0 commit comments

Comments
 (0)