Address torrent feature review comments.
This commit is contained in:
parent
8a924aae4a
commit
1ae101c917
7 changed files with 31 additions and 29 deletions
|
@ -62,6 +62,10 @@ def per_user_torrent_filename(user_uuid, blob_uuid):
|
|||
|
||||
|
||||
class PieceHasher(object):
|
||||
""" Utility for computing torrent piece hashes as the data flows through the update
|
||||
method of this class. Users should get the final value by calling final_piece_hashes
|
||||
since new chunks are allocated lazily.
|
||||
"""
|
||||
def __init__(self, piece_size, starting_offset=0, starting_piece_hash_bytes='',
|
||||
hash_fragment_to_resume=None):
|
||||
if not isinstance(starting_offset, (int, long)):
|
||||
|
|
Reference in a new issue