temporarily disable blob analytics

This commit is contained in:
Jack Robison 2017-10-02 11:21:51 -04:00
parent 6a7982022a
commit aa3982f0e2
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -630,14 +630,14 @@ class Daemon(AuthJSONRPCServer):
else: else:
blob_infos = [] blob_infos = []
report["known_blobs"] = 0 report["known_blobs"] = 0
for blob_hash, blob_num, iv, length in blob_infos: # for blob_hash, blob_num, iv, length in blob_infos:
try: # try:
host = yield self.session.blob_manager.get_host_downloaded_from(blob_hash) # host = yield self.session.blob_manager.get_host_downloaded_from(blob_hash)
except Exception: # except Exception:
host = None # host = None
if host: # if host:
blobs[blob_num] = host # blobs[blob_num] = host
report["blobs"] = json.dumps(blobs) # report["blobs"] = json.dumps(blobs)
defer.returnValue(report) defer.returnValue(report)
@defer.inlineCallbacks @defer.inlineCallbacks