Skip to content

Commit aa6d861

Browse files
committed
docs: fix migration guide — request_ctx contextvar still exists
1 parent 6f0b041 commit aa6d861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,9 @@ server = Server(
538538
)
539539
```
540540

541-
### Lowlevel `Server`: `request_context` property and `request_ctx` contextvar removed
541+
### Lowlevel `Server`: `request_context` property removed
542542

543-
The `server.request_context` property and the `request_ctx` module-level contextvar have been removed. Request context is now passed directly to handlers as the first argument (`ctx`).
543+
The `server.request_context` property has been removed. Request context is now passed directly to handlers as the first argument (`ctx`). The `request_ctx` module-level contextvar still exists but should not be needed — use `ctx` directly instead.
544544

545545
**Before (v1):**
546546

0 commit comments

Comments
 (0)