forked from LBRYCommunity/lbry-sdk
re-add hash_queue_size function
This commit is contained in:
parent
789ca3693f
commit
51662b1e5b
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ class DHTHashAnnouncer(object):
|
|||
self.hash_queue.remove(blob_hash)
|
||||
defer.returnValue(result)
|
||||
|
||||
def hash_queue_size(self):
|
||||
return len(self.hash_queue)
|
||||
|
||||
def _show_announce_progress(self, size, start):
|
||||
queue_size = len(self.hash_queue)
|
||||
average_blobs_per_second = float(size - queue_size) / (self.clock.seconds() - start)
|
||||
|
|
Loading…
Reference in a new issue