Skip to content

Commit

Permalink
use structured bindings for num_partitions_and_events assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakostu committed Nov 4, 2022
1 parent 8178873 commit 8bd1d54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libvast/src/system/catalog.cpp
Expand Up @@ -522,8 +522,7 @@ catalog(catalog_actor::stateful_pointer<catalog_state> self,
r.data.reserve(num_partitions_and_events_per_schema_and_version.size());
for (const auto& [schema_and_version, num_partitions_and_events] :
num_partitions_and_events_per_schema_and_version) {
auto schema_num_partitions = num_partitions_and_events.first;
auto schema_num_events = num_partitions_and_events.second;
auto [schema_num_partitions, schema_num_events] = num_partitions_and_events;
total_num_partitions += schema_num_partitions;
total_num_events += schema_num_events;
r.data.push_back(data_point{
Expand Down

0 comments on commit 8bd1d54

Please sign in to comment.