Skip to content

Commit 95acdb1

Browse files
authored
Fix structured binding in StateSerializer lambda
1 parent ca2a79f commit 95acdb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

validator/state-serializer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ void AsyncStateSerializer::got_shard_state(BlockHandle handle, td::Ref<ShardStat
578578
void AsyncStateSerializer::write_shard_state(BlockHandle handle, ShardIdFull shard,
579579
std::shared_ptr<vm::CellDbReader> cell_db_reader,
580580
std::shared_ptr<std::vector<SerializablePart>> parts, size_t idx) {
581-
auto [type, cell] = parts->at(idx);
581+
auto part = parts->at(idx);
582+
auto type = part.type;
583+
auto cell = part.cell;
582584

583585
auto write_data = [=, this,
584586
cancellation_token = cancellation_token_source_.get_cancellation_token()](td::FileFd& fd) mutable {

0 commit comments

Comments
 (0)