Skip to content

Commit

Permalink
specified BaseVariantIndexer as ColdHotVariantIndexer.INDEXER; delete…
Browse files Browse the repository at this point in the history
…d its own __init__ method
  • Loading branch information
erikyao committed Aug 28, 2021
1 parent fd2fe21 commit 757f6f0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/hub/dataindex/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,4 @@ class VariantIndexer(BaseVariantIndexer):


class ColdHotVariantIndexer(ColdHotIndexer):
def __init__(self, build_doc, indexer_env, index_name):
hot_build_doc = _BuildDoc(build_doc)
cold_build_doc = hot_build_doc.extract_coldbuild()

self.hot = BaseVariantIndexer(hot_build_doc, indexer_env, index_name)
self.cold = BaseVariantIndexer(cold_build_doc, indexer_env, self.hot.es_index_name)
INDEXER = BaseVariantIndexer

0 comments on commit 757f6f0

Please sign in to comment.