send CryptBlobInfo (not a CryptStreamBlobMaker) to DiskBlobManager.creator_finished

This commit is contained in:
Jack Robison 2017-09-07 12:00:55 -04:00
parent e3cc3992b0
commit 100c18d9b6
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF
2 changed files with 4 additions and 3 deletions

View file

@ -89,8 +89,8 @@ class CryptStreamCreator(StreamCreator):
should_announce = self.blob_count == 0
d = self.current_blob.close()
d.addCallback(self._blob_finished)
d.addCallback(lambda _: self.blob_manager.creator_finished(
self.next_blob_creator, should_announce))
d.addCallback(lambda blob_info: self.blob_manager.creator_finished(blob_info,
should_announce))
self.finished_deferreds.append(d)
self.current_blob = None

View file

@ -29,8 +29,9 @@ class EncryptedFileStreamCreator(CryptStreamCreator):
self.blob_infos = []
def _blob_finished(self, blob_info):
log.debug("length: %s", str(blob_info.length))
log.debug("length: %s", blob_info.length)
self.blob_infos.append(blob_info)
return blob_info
def _save_stream_info(self):
stream_info_manager = self.lbry_file_manager.stream_info_manager