mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 12:06:04 +00:00
change close to shutdown
This commit is contained in:
parent
06d02bf3de
commit
97b86226c7
2 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ class SqliteKVStoreImpl(KVStore):
|
|||
)
|
||||
await db.commit()
|
||||
|
||||
async def close(self):
|
||||
async def shutdown(self):
|
||||
"""Close the persistent connection (only for in-memory databases)."""
|
||||
if self._conn:
|
||||
await self._conn.close()
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ async def test_memory_kvstore_persistence_behavior():
|
|||
store1 = SqliteKVStoreImpl(config)
|
||||
await store1.initialize()
|
||||
await store1.set("persist_test", "should_not_persist")
|
||||
await store1.close()
|
||||
await store1.shutdown()
|
||||
|
||||
# Second instance with same config
|
||||
store2 = SqliteKVStoreImpl(config)
|
||||
|
|
@ -27,4 +27,4 @@ async def test_memory_kvstore_persistence_behavior():
|
|||
result = await store2.get("persist_test")
|
||||
assert result is None
|
||||
|
||||
await store2.close()
|
||||
await store2.shutdown()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue