Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the middleware brotli compression layer #65

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions biothings_annotator/application/middleware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from typing import Dict, List

from .compression import compress_response


def build_middleware() -> List[Dict]:
"""
Expand All @@ -17,12 +15,5 @@ def register_middleware(
priority: Union[Default, int] = _default,
) -> Union[MiddlewareType, Middleware]:
"""

# Temporarily removing the middleware compression due to 502 gateway errors
# Date: August 28th 2024

# compression_middleware = {"middleware": compress_response, "attach_to": "response"}
# middleware_collection = [compression_middleware]

middleware_collection = []
return middleware_collection
90 changes: 0 additions & 90 deletions biothings_annotator/application/middleware/compression.py

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ classifiers = [
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"brotli >= 1.1.0",
"biothings_client >= 0.3.1",
"sanic[ext] >= 23.12.1",
]
Expand Down
Loading