1
0
Fork 0
forked from lthn/blockchain

conn_tool: proper handling of gzip encoding/decoding result

This commit is contained in:
sowle 2020-03-18 18:38:28 +03:00
parent cefa4b561f
commit 5a1fa2e042
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -1142,7 +1142,9 @@ bool process_archive(archive_processor_t& arch_processor, bool is_packing, std::
if (is_packing)
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;
std::cout << "Progress: " << ((sz - remaining) * 100) / sz << "%\r";