From e385d85de4ec2cacf0c5adb63b124a0f45e10b0a Mon Sep 17 00:00:00 2001 From: Kial Jinnah Date: Fri, 26 Jul 2024 15:51:34 -0700 Subject: [PATCH] cleanup Signed-off-by: Kial Jinnah --- search-solr-importer/.env.sample | 4 ++-- search-solr-importer/src/search_solr_importer/config.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/search-solr-importer/.env.sample b/search-solr-importer/.env.sample index 11b8465..9a9b78b 100644 --- a/search-solr-importer/.env.sample +++ b/search-solr-importer/.env.sample @@ -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= diff --git a/search-solr-importer/src/search_solr_importer/config.py b/search-solr-importer/src/search_solr_importer/config.py index 72c88a3..8623419 100644 --- a/search-solr-importer/src/search_solr_importer/config.py +++ b/search-solr-importer/src/search_solr_importer/config.py @@ -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://')