From e6503a676c3ec20a21e7844abc1b9995d0f51c20 Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Fri, 10 Apr 2026 08:56:52 -0400 Subject: [PATCH] Fix ctx.method() usage in README Signed-off-by: Stefan VanBuren --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b6854fe..4639411 100644 --- a/README.md +++ b/README.md @@ -295,13 +295,13 @@ class LoggingInterceptor: """Implements the MetadataInterceptor protocol.""" async def on_start(self, ctx: RequestContext) -> None: - print(f"Handling {ctx.method.name} request") + print(f"Handling {ctx.method().name} request") async def on_end(self, token: None, ctx: RequestContext, error: Exception | None) -> None: if error: - print(f"Failed {ctx.method.name}: {error}") + print(f"Failed {ctx.method().name}: {error}") else: - print(f"Completed {ctx.method.name} request") + print(f"Completed {ctx.method().name} request") # Add to your application app = HelloServiceASGIApplication(