From 1ecb32b3ede6663267f77f9e0219f9032a5fe931 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 21 Apr 2017 13:32:59 -0400 Subject: [PATCH] less intensive blob availability check --- lbrynet/core/BlobAvailability.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbrynet/core/BlobAvailability.py b/lbrynet/core/BlobAvailability.py index 8175701fe..d3b6d26a8 100644 --- a/lbrynet/core/BlobAvailability.py +++ b/lbrynet/core/BlobAvailability.py @@ -28,7 +28,7 @@ class BlobAvailabilityTracker(object): def start(self): log.info("Starting %s", self) - self._check_popular.start(30) + self._check_popular.start(600) self._check_mine.start(600) def stop(self): @@ -70,7 +70,7 @@ class BlobAvailabilityTracker(object): def _get_most_popular(self): dl = [] - for (hash, _) in self._dht_node.get_most_popular_hashes(100): + for (hash, _) in self._dht_node.get_most_popular_hashes(10): encoded = hash.encode('hex') dl.append(self._update_peers_for_blob(encoded)) return defer.DeferredList(dl) @@ -87,7 +87,7 @@ class BlobAvailabilityTracker(object): return defer.DeferredList(dl) def sample(blobs): - return random.sample(blobs, min(len(blobs), 100)) + return random.sample(blobs, min(len(blobs), 10)) start = time.time() log.debug('==> Updating the peers for my blobs')