send CryptBlobInfo (not a CryptStreamBlobMaker) to DiskBlobManager.creator_finished
This commit is contained in:
parent
e3cc3992b0
commit
100c18d9b6
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue