One more attempt with Claude's help to close connections

This commit is contained in:
Raghotham Murthy 2025-10-07 12:28:31 -07:00
parent fa100c77fd
commit a424815804
16 changed files with 132 additions and 38 deletions

View file

@ -108,3 +108,8 @@ class QuotaMiddleware:
)
body = json.dumps({"error": {"message": message}}).encode()
await send({"type": "http.response.body", "body": body})
async def close(self):
"""Close the KV store connection."""
if self.kv is not None:
await self.kv.close()