diff --git a/lbry/wallet/server/db/elastic_search.py b/lbry/wallet/server/db/elastic_search.py index ed7359bb6..725aae7a5 100644 --- a/lbry/wallet/server/db/elastic_search.py +++ b/lbry/wallet/server/db/elastic_search.py @@ -94,7 +94,7 @@ class SearchIndex: else: yield extract_doc(doc, self.index) count += 1 - if count % 100: + if count % 100 == 0: self.logger.info("Indexing in progress, %d claims.", count) self.logger.info("Indexing done for %d claims.", count) @@ -206,7 +206,6 @@ class SearchIndex: self.short_id_cache[key] = result return self.short_id_cache.get(key, None) - async def search(self, **kwargs): if 'channel' in kwargs: result = await self.resolve_url(kwargs.pop('channel'))