diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 8b1f424b7..51439f657 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -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