mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-24 05:18:07 +00:00
tidiness: return res from logging of progress
This commit is contained in:
parent
8bc248a515
commit
cd4472003b
@ -222,7 +222,10 @@ class Encoder(object):
|
|||||||
subshare_hash = hashutil.tagged_hash("encoded subshare", subshare)
|
subshare_hash = hashutil.tagged_hash("encoded subshare", subshare)
|
||||||
self.subshare_hashes[shareid].append(subshare_hash)
|
self.subshare_hashes[shareid].append(subshare_hash)
|
||||||
dl = defer.DeferredList(dl)
|
dl = defer.DeferredList(dl)
|
||||||
dl.addCallback(lambda res: log.msg("%s uploaded %s / %s bytes of your file." % (self, self.segment_size*(segnum+1), self.segment_size*self.num_segments)))
|
def _logit(res):
|
||||||
|
log.msg("%s uploaded %s / %s bytes of your file." % (self, self.segment_size*(segnum+1), self.segment_size*self.num_segments))
|
||||||
|
return res
|
||||||
|
dl.addCallback(_logit)
|
||||||
return dl
|
return dl
|
||||||
|
|
||||||
def send_subshare(self, shareid, segment_num, subshare):
|
def send_subshare(self, shareid, segment_num, subshare):
|
||||||
|
Loading…
Reference in New Issue
Block a user