Simplify reassembly code using DataBlockList::LastBlock()

This commit is contained in:
Jon Siwek 2019-09-24 10:23:24 -07:00
parent 5ce68bd20a
commit 1253a61340
5 changed files with 15 additions and 6 deletions

View file

@ -29,7 +29,7 @@ uint64_t FileReassembler::Flush()
if ( block_list.Empty() )
return 0;
const auto& last_block = std::prev(block_list.End())->second;
const auto& last_block = block_list.LastBlock();
// This is expected to call back into FileReassembler::Undelivered().
flushing = true;