Skip to content

Commit

Permalink
feat: update to handle new clustering setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Dec 17, 2023
1 parent e123316 commit edbc02e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 81 deletions.
2 changes: 1 addition & 1 deletion garven/routers/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def guild_count(request: Request):

statistic.statistic += item

cluster_count = int(os.environ.get("CLUSTER_COUNT", 6))
cluster_count = int(os.environ.get("CLUSTER_COUNT", 11))
if len(data.keys()) != cluster_count:
statistic.partial_response = True
log.error(
Expand Down
4 changes: 2 additions & 2 deletions garven/routers/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def cluster_status(request: Request):
d.pop(k)
continue

if len(d.values()) != int(os.environ.get("CLUSTER_COUNT", 6)):
if len(d.values()) != int(os.environ.get("CLUSTER_COUNT", 11)):
partial_response = True

return ClusterHealth(clusters=d, partial_response=partial_response)
Expand All @@ -53,7 +53,7 @@ async def notify_devs(request: Request, data: DevShare):
z: Server = request.app.zonis
await z.request(
"share_with_devs",
client_identifier="2",
client_identifier=os.environ.get("DEV_CLUSTER", "2"),
title=data.title,
description=data.description,
sender=data.sender,
Expand Down
78 changes: 0 additions & 78 deletions garven/routers/premium.py

This file was deleted.

0 comments on commit edbc02e

Please sign in to comment.