remove unused calculate_available_blob_size function

This commit is contained in:
Jack Robison 2018-02-22 10:22:53 -05:00
parent 3b369103a0
commit 9a046fca0f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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