Skip to content

Commit

Permalink
feat: make total shards an env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Jan 5, 2024
1 parent df5984f commit a923fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suggestions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def create_bot(database_wrapper=None) -> SuggestionsBot:
# TODO Fix this
# request = httpx.get("http://localhost:7878/shard-count")
# total_shards = int(request.text)
total_shards = 70
total_shards = int(os.environ["TOTAL_SHARDS"])
cluster_id = int(os.environ["CLUSTER"])
offset = cluster_id - 1
number_of_shards_per_cluster = 5
Expand Down

0 comments on commit a923fdf

Please sign in to comment.