Format M11 cellular code with clang-format 19
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m52s
Foundation / checks (client) (push) Failing after 4m25s
Foundation / checks (network) (push) Failing after 3m2s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 5m47s
Foundation / checks (postgres) (push) Canceled after 1m24s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m52s
Foundation / checks (client) (push) Failing after 4m25s
Foundation / checks (network) (push) Failing after 3m2s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 5m47s
Foundation / checks (postgres) (push) Canceled after 1m24s
This commit is contained in:
@@ -36,8 +36,8 @@ PostgresActionLedger::find_record(const network::AccountId& account, std::uint64
|
||||
auto* db = db_->get();
|
||||
if (!db)
|
||||
return std::unexpected(network::ActionLedgerError::unavailable);
|
||||
const auto found = persistence::find_region_action_record(
|
||||
*db, key_, *lease, account.bytes, action_id, timeout_);
|
||||
const auto found = persistence::find_region_action_record(*db, key_, *lease, account.bytes,
|
||||
action_id, timeout_);
|
||||
if (!found.has_value()) {
|
||||
const auto kind = found.error().kind;
|
||||
if (kind == persistence::LeaseStoreError::store ||
|
||||
@@ -54,8 +54,7 @@ PostgresActionLedger::find_record(const network::AccountId& account, std::uint64
|
||||
std::nullopt};
|
||||
if (row.cellular_input) {
|
||||
const auto input = network::decode_cellular_action_input(*row.cellular_input);
|
||||
if (!input || input->tick != row.action.tick ||
|
||||
result != network::ActionResult::committed)
|
||||
if (!input || input->tick != row.action.tick || result != network::ActionResult::committed)
|
||||
return std::unexpected(network::ActionLedgerError::unavailable);
|
||||
std::array<std::uint8_t, network::cellular_action_input_bytes> canonical{};
|
||||
std::ranges::copy(*row.cellular_input, canonical.begin());
|
||||
@@ -66,8 +65,7 @@ PostgresActionLedger::find_record(const network::AccountId& account, std::uint64
|
||||
return std::optional<network::DurableActionRecord>{std::move(record)};
|
||||
}
|
||||
|
||||
std::expected<std::vector<std::optional<network::DurableActionRecord>>,
|
||||
network::ActionLedgerError>
|
||||
std::expected<std::vector<std::optional<network::DurableActionRecord>>, network::ActionLedgerError>
|
||||
PostgresActionLedger::find_all_records(std::span<const network::ActionKey> keys) {
|
||||
std::vector<std::optional<network::DurableActionRecord>> out(keys.size());
|
||||
if (keys.empty())
|
||||
@@ -97,10 +95,10 @@ PostgresActionLedger::find_all_records(std::span<const network::ActionKey> keys)
|
||||
continue;
|
||||
const auto& row = *(*found)[i];
|
||||
const auto result = static_cast<network::ActionResult>(row.result);
|
||||
network::DurableActionRecord record{
|
||||
network::ActionOutcome{keys[i].action_id, result, row.action.tick,
|
||||
row.action.commit_sequence},
|
||||
std::nullopt};
|
||||
network::DurableActionRecord record{network::ActionOutcome{keys[i].action_id, result,
|
||||
row.action.tick,
|
||||
row.action.commit_sequence},
|
||||
std::nullopt};
|
||||
if (row.cellular_input) {
|
||||
const auto input = network::decode_cellular_action_input(*row.cellular_input);
|
||||
if (!input || input->tick != row.action.tick ||
|
||||
|
||||
Reference in New Issue
Block a user