We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 633b3a0 commit a1079afCopy full SHA for a1079af
1 file changed
hca/upload/lib/client_side_checksum_handler.py
@@ -47,7 +47,10 @@ def compute(self):
47
_multipart_chunksize = get_s3_multipart_chunk_size(_file_size)
48
with ChecksummingSink(_multipart_chunksize, hash_functions=self._checksums) as sink:
49
with open(self._filename, 'rb') as _file_object:
50
- sink.write(_file_object.read(_multipart_chunksize))
+ data = _file_object.read(_multipart_chunksize)
51
+ while data:
52
+ sink.write(data)
53
54
checksums = sink.get_checksums()
55
print("Checksumming took %.2f milliseconds to compute" % ((time.time() - start_time) * 1000))
56
return checksums
0 commit comments