fix: don't block other command when database is opened

This commit is contained in:
mokurin000
2025-08-02 22:32:30 +08:00
parent 03dc2eea94
commit f25349ca26
2 changed files with 2 additions and 3 deletions

View File

@@ -89,6 +89,8 @@ where
A::Payload: From<u32>,
A::Response: Encode + for<'a> BorrowDecode<'a, ()> + HasUid,
{
let _ = cache::init_db();
let user_ids = user_ids.into();
let read = cache::read_txn()?;
let write = cache::write_txn()?;