mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-16 12:02:37 +00:00
One more attempt with Claude's help to close connections
This commit is contained in:
parent
fa100c77fd
commit
a424815804
16 changed files with 132 additions and 38 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue