Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Nov 4, 2024
1 parent a4c99d3 commit c1018c7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,12 @@ AnnotatedCommit::from(LeafIndex receiver,
// Compute the list of committed proposals
auto cache = std::map<ProposalRef, Proposal>{};
for (const auto& proposal_msg : proposals) {
const auto& proposal_public_message = var::get<PublicMessage>(proposal_msg.message);
const auto proposal_content_auth = proposal_public_message.authenticated_content();
const auto proposal = var::get<Proposal>(proposal_content_auth.content.content);
const auto& proposal_public_message =
var::get<PublicMessage>(proposal_msg.message);
const auto proposal_content_auth =
proposal_public_message.authenticated_content();
const auto proposal =
var::get<Proposal>(proposal_content_auth.content.content);

const auto ref = tree_before.suite.ref(content_auth);
cache.insert_or_assign(ref, proposal);
Expand Down

0 comments on commit c1018c7

Please sign in to comment.