Skip to content

Commit a7a0efc

Browse files
committed
docs: fix migration guide — request_ctx contextvar still exists
1 parent 65e5d63 commit a7a0efc

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
@@ -490,9 +490,9 @@ server = Server(
490490
)
491491
```
492492

493-
### Lowlevel `Server`: `request_context` property and `request_ctx` contextvar removed
493+
### Lowlevel `Server`: `request_context` property removed
494494

495-
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`).
495+
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.
496496

497497
**Before (v1):**
498498

0 commit comments

Comments
 (0)