Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: euri10 <[email protected]>
  • Loading branch information
provinzkraut and euri10 authored Feb 23, 2025
1 parent 6ee9720 commit ce365c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litestar/middleware/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class ASGIMiddleware(abc.ABC):
An instance of the individual middleware's will be created *once* and used to
build up the internal middleware stack. As such, middlewares should *not* be
stateful, as this state will be shared across all requests.
Any connection-specific state should be scoped to the `handle` implementation. Not doing so would typically lead to conflicting variable reads/writes across requests, and most likely bugs.
.. example::
Expand Down

0 comments on commit ce365c3

Please sign in to comment.