Skip to content

Commit

Permalink
fix: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Jan 4, 2024
1 parent a2a27e9 commit cc4fcee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions suggestions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ async def create_bot(database_wrapper=None) -> SuggestionsBot:
is_prod: bool = True if os.environ.get("PROD", None) else False

if is_prod:
request = httpx.get("http://localhost:7878/shard-count")
total_shards = int(request.text)
# request = httpx.get("http://localhost:7878/shard-count")
# total_shards = int(request.text)
total_shards = 70
cluster_id = int(os.environ["CLUSTER"])
offset = cluster_id - 1
number_of_shards_per_cluster = 10
Expand Down

0 comments on commit cc4fcee

Please sign in to comment.