forked from lthn/blockchain
conn_tool: proper handling of gzip encoding/decoding result
This commit is contained in:
parent
cefa4b561f
commit
5a1fa2e042
1 changed files with 3 additions and 1 deletions
|
|
@ -1142,7 +1142,9 @@ bool process_archive(archive_processor_t& arch_processor, bool is_packing, std::
|
||||||
if (is_packing)
|
if (is_packing)
|
||||||
hash_stream.update(buff.data(), buff.size());
|
hash_stream.update(buff.data(), buff.size());
|
||||||
|
|
||||||
arch_processor.update_in(buff, writer_cb);
|
bool r = arch_processor.update_in(buff, writer_cb);
|
||||||
|
CHECK_AND_ASSERT_MES(r, false, "arch_processor.update_in failed");
|
||||||
|
|
||||||
|
|
||||||
remaining -= read_sz;
|
remaining -= read_sz;
|
||||||
std::cout << "Progress: " << ((sz - remaining) * 100) / sz << "%\r";
|
std::cout << "Progress: " << ((sz - remaining) * 100) / sz << "%\r";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue