Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
  • Loading branch information
kialj876 committed Jul 26, 2024
1 parent 3cf0154 commit e385d85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions search-solr-importer/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ SENTRY_TSR=1.0

###Local
REGISTRIES_SEARCH_API_INTERNAL_URL=http://localhost:5000
SOLR_SVC_LEADER_URL=http://localhost:8873/solr
SOLR_SVC_FOLLOWER_URL=http://localhost:8873/solr
SOLR_SVC_BUS_LEADER_URL=http://localhost:8873/solr
SOLR_SVC_BUS_FOLLOWER_URL=http://localhost:8873/solr

DATABASE_HOST_LEAR=
DATABASE_NAME=
Expand Down
8 changes: 4 additions & 4 deletions search-solr-importer/src/search_solr_importer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class Config(): # pylint: disable=too-few-public-methods

PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))

SOLR_SVC_LEADER_CORE = os.getenv('SOLR_SVC_LEADER_CORE', 'business')
SOLR_SVC_FOLLOWER_CORE = os.getenv('SOLR_SVC_FOLLOWER_CORE', 'business_follower')
SOLR_SVC_LEADER_URL = os.getenv('SOLR_SVC_LEADER_URL', 'http://localhost:8873/solr')
SOLR_SVC_FOLLOWER_URL = os.getenv('SOLR_SVC_FOLLOWER_URL', 'http://localhost:8874/solr')
SOLR_SVC_LEADER_CORE = os.getenv('SOLR_SVC_BUS_LEADER_CORE', 'business')
SOLR_SVC_FOLLOWER_CORE = os.getenv('SOLR_SVC_BUS_FOLLOWER_CORE', 'business_follower')
SOLR_SVC_LEADER_URL = os.getenv('SOLR_SVC_BUS_LEADER_URL', 'http://localhost:8873/solr')
SOLR_SVC_FOLLOWER_URL = os.getenv('SOLR_SVC_BUS_FOLLOWER_URL', 'http://localhost:8874/solr')
HAS_FOLLOWER = SOLR_SVC_FOLLOWER_URL != SOLR_SVC_LEADER_URL

SEARCH_API_URL = os.getenv('REGISTRIES_SEARCH_API_INTERNAL_URL', 'http://')
Expand Down

0 comments on commit e385d85

Please sign in to comment.