remove unused calculate_available_blob_size function
This commit is contained in:
parent
3b369103a0
commit
9a046fca0f
1 changed files with 0 additions and 10 deletions
|
@ -161,16 +161,6 @@ class AlwaysSend(object):
|
|||
return d
|
||||
|
||||
|
||||
# If an instance has a lot of blobs, this call might get very expensive.
|
||||
# For reflector, with 50k blobs, it definitely has an impact on the first run
|
||||
# But doesn't seem to impact performance after that.
|
||||
@defer.inlineCallbacks
|
||||
def calculate_available_blob_size(blob_manager):
|
||||
blob_hashes = yield blob_manager.get_all_verified_blobs()
|
||||
blobs = yield defer.DeferredList([blob_manager.get_blob(b) for b in blob_hashes])
|
||||
defer.returnValue(sum(b.length for success, b in blobs if success and b.length))
|
||||
|
||||
|
||||
class Daemon(AuthJSONRPCServer):
|
||||
"""
|
||||
LBRYnet daemon, a jsonrpc interface to lbry functions
|
||||
|
|
Loading…
Add table
Reference in a new issue