Skip to content

Commit

Permalink
Remove timeout overrides for mirrors (#18)
Browse files Browse the repository at this point in the history
* Remove timeout overrides for mirrors

* undo change
  • Loading branch information
cmyui authored Jul 14, 2024
1 parent fbe1e5f commit 5ddadc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/adapters/osu_mirrors/backends/mino.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ async def fetch_beatmap_zip_data(
response = await self.http_client.get(
f"{self.base_url}/d/{beatmapset_id}",
headers={"x-ratelimit-key": settings.MINO_INCREASED_RATELIMIT_KEY},
timeout=httpx.Timeout(None, connect=2),
)
if response.status_code in (404, 451):
return BeatmapMirrorResponse(
Expand Down Expand Up @@ -59,7 +58,6 @@ async def fetch_beatmap_background_image(
logging.info(f"Fetching beatmap background from mino: {beatmap_id}")
response = await self.http_client.get(
f"{self.base_url}/preview/background/{beatmap_id}",
timeout=httpx.Timeout(None, connect=2),
)
if response.status_code in (404, 451):
return BeatmapMirrorResponse(
Expand Down
2 changes: 0 additions & 2 deletions app/adapters/osu_mirrors/backends/osu_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ async def fetch_beatmap_zip_data(
try:
response = await self.http_client.get(
f"{self.base_url}/api/d/{beatmapset_id}",
timeout=httpx.Timeout(None, connect=2),
)
if response.status_code in (404, 451):
return BeatmapMirrorResponse(
Expand Down Expand Up @@ -56,7 +55,6 @@ async def fetch_beatmap_background_image(
try:
response = await self.http_client.get(
f"{self.base_url}/api/media/background/{beatmap_id}",
timeout=httpx.Timeout(None, connect=2),
)
if response.status_code in (404, 451):
return BeatmapMirrorResponse(
Expand Down

0 comments on commit 5ddadc5

Please sign in to comment.