Skip to content

refactor: extract ZstdDecompressionMiddleware out of create_app()#6174

Merged
mattf merged 1 commit into
ogx-ai:mainfrom
mattf:refactor-move-zstd-middleware-out-of-func
Jun 26, 2026
Merged

refactor: extract ZstdDecompressionMiddleware out of create_app()#6174
mattf merged 1 commit into
ogx-ai:mainfrom
mattf:refactor-move-zstd-middleware-out-of-func

Conversation

@mattf

@mattf mattf commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Move the ZstdDecompressionMiddleware ASGI middleware from the create_app() function body to the module level, making it a standalone, importable class with a docstring.

This improves testability, adheres to the convention of top-level classes, and matches the pattern used by ProviderDataMiddleware above it.

Move the ZstdDecompressionMiddleware ASGI middleware from the
create_app() function body to the module level, making it a standalone,
importable class with a docstring.

This improves testability, adheres to the convention of top-level classes,
and matches the pattern used by ProviderDataMiddleware above it.

Signed-off-by: Matthew Farrellee <[email protected]>
@mattf
mattf marked this pull request as ready for review June 23, 2026 20:08
@mattf
mattf added this pull request to the merge queue Jun 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jun 24, 2026
@mattf
mattf merged commit bd5a759 into ogx-ai:main Jun 26, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants